Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyPartOwner = uint16(0) // @deprecated - controller was used only by the very first // version of cadence for access controll which was retired later on // KeyPartController = uint16(1) KeyPartKey = uint16(2) )
Variables ¶
View Source
var UnexpectedLedgerKeyFormat = fmt.Errorf("unexpected ledger key format")
UnexpectedLedgerKeyFormat is returned when a ledger key is not in the expected format
Functions ¶
func LedgerKeyToRegisterID ¶
func LedgerKeyToRegisterID(key ledger.Key) (flow.RegisterID, error)
LedgerKeyToRegisterID converts a ledger key to a register id returns an UnexpectedLedgerKeyFormat error if the key is not in the expected format
func RegisterIDToLedgerKey ¶
func RegisterIDToLedgerKey(registerID flow.RegisterID) ledger.Key
RegisterIDToLedgerKey converts a register id to a ledger key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.