keyer

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 DecodeAccountContractKeySeqNum

func DecodeAccountContractKeySeqNum(key []byte) (uint64, uint64, byte, uint64)

func DecodeAccountKeySeqNum

func DecodeAccountKeySeqNum(key []byte) (uint64, byte, uint64)

func DecodeCheckpointKey

func DecodeCheckpointKey(key []byte) byte

func EncodeAccountCheckpointKey

func EncodeAccountCheckpointKey(shardNum byte) []byte

func EncodeAccountContractCheckpointKey

func EncodeAccountContractCheckpointKey(shardNum byte) []byte

func EncodeAccountContractKey

func EncodeAccountContractKey(account uint64, contract uint64, shardNum byte, ordinalNumber uint64) []byte

func EncodeAccountContractPrefixKey

func EncodeAccountContractPrefixKey(account uint64, contract uint64) []byte

func EncodeAccountKey

func EncodeAccountKey(account uint64, shardNum byte, ordinalNumber uint64) []byte

func EncodeAccountPrefixKey

func EncodeAccountPrefixKey(account uint64) []byte

func EncodeAccountWithPrefixKey

func EncodeAccountWithPrefixKey(prefix byte, account uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL