Documentation ¶
Index ¶
- func KeyPartFixture(typ uint16, val string) l.KeyPart
- func LightPayload(key uint16, value uint16) *l.Payload
- func LightPayload8(key uint8, value uint8) *l.Payload
- func PathByUint16(inp uint16) l.Path
- func PathByUint16LeftPadded(inp uint16) l.Path
- func PathByUint8(inp uint8) l.Path
- func QueryFixture() *l.Query
- func RandomPaths(n int) []l.Path
- func RandomPathsRandLen(maxN int) []l.Path
- func RandomPayload(minByteSize int, maxByteSize int) *l.Payload
- func RandomPayloads(n int, minByteSize int, maxByteSize int) []*l.Payload
- func RandomUniqueKeys(n, m, minByteSize, maxByteSize int) []l.Key
- func RandomValues(n int, minByteSize, maxByteSize int) []l.Value
- func RootHashFixture() l.RootHash
- func TrieBatchProofFixture() (*l.TrieBatchProof, l.State)
- func TrieProofFixture() (*l.TrieProof, l.State)
- func TrieUpdateFixture(n int, minPayloadByteSize int, maxPayloadByteSize int) *l.TrieUpdate
- func UpdateFixture() *l.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyPartFixture ¶
KeyPartFixture returns a key part fixture
func LightPayload ¶
LightPayload returns a payload with 2 byte key and 2 byte value
func LightPayload8 ¶
LightPayload8 returns a payload with 1 byte key and 1 byte value
func PathByUint16 ¶
PathByUint16 returns a path (32 bytes) given a uint16 (big endian)
func PathByUint16LeftPadded ¶
PathByUint16LeftPadded returns a path (32 bytes) given a uint16 (left padded big endian)
func PathByUint8 ¶
PathByUint8 returns a path (32 bytes) given a uint8
func RandomPathsRandLen ¶
RandomPathsRandLen generate m random paths. the number of paths, m, is also randomly selected from the range [1, maxN]
func RandomPayload ¶
RandomPayload returns a random payload
func RandomPayloads ¶
RandomPayloads returns n random payloads
func RandomUniqueKeys ¶
RandomUniqueKeys generates n random keys (each with m random key parts)
func RandomValues ¶
RandomValues returns n random values with variable sizes (minByteSize <= size < maxByteSize)
func RootHashFixture ¶
RootHashFixture returns a root hash fixture
func TrieBatchProofFixture ¶
func TrieBatchProofFixture() (*l.TrieBatchProof, l.State)
TrieBatchProofFixture returns a trie batch proof fixture
func TrieProofFixture ¶
TrieProofFixture returns a trie proof fixture
func TrieUpdateFixture ¶
func TrieUpdateFixture(n int, minPayloadByteSize int, maxPayloadByteSize int) *l.TrieUpdate
TrieUpdateFixture returns a trie update fixture
Types ¶
This section is empty.