Documentation ¶
Index ¶
- Constants
- func DecodeAccountContractKeySeqNum(key []byte) (uint64, uint64, byte, uint64)
- func DecodeAccountKeySeqNum(key []byte) (uint64, byte, uint64)
- func DecodeCheckpointKey(key []byte) byte
- func EncodeAccountCheckpointKey(shardNum byte) []byte
- func EncodeAccountContractCheckpointKey(shardNum byte) []byte
- func EncodeAccountContractKey(account uint64, contract uint64, shardNum byte, ordinalNumber uint64) []byte
- func EncodeAccountContractPrefixKey(account uint64, contract uint64) []byte
- func EncodeAccountKey(account uint64, shardNum byte, ordinalNumber uint64) []byte
- func EncodeAccountPrefixKey(account uint64) []byte
- func EncodeAccountWithPrefixKey(prefix byte, account uint64) []byte
Constants ¶
View Source
const ( //prefixSequenceNumber = byte(0x01) // unused now PrefixAccount = byte(0x02) PrefixAccountCheckpoint = byte(0x03) PrefixAccountContract = byte(0x04) PrefixAccountContractCheckpoint = byte(0x05) TokenPrefixLen = 17 AccountPrefixKeyLen = 9 AccountKeyLen = 18 TokenKeyLen = 26 CheckpointLen = 2 )
Variables ¶
This section is empty.
Functions ¶
func DecodeCheckpointKey ¶
func EncodeAccountKey ¶
func EncodeAccountPrefixKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.