package
0.0.0-20210121151755-f6208871c388
Repository: https://github.com/prysmaticlabs/go-ssz.git
Documentation: pkg.go.dev
# Functions
BitlistRoot computes the hash tree root of a bitlist type as outlined in the Simple Serialize official specification document.
Bitvector4Root computes the hash tree root of a bitvector4 type as outlined in the Simple Serialize official specification document.
DetermineSize returns the required byte size of a buffer for using SSZ to marshal an object.
SSZFactory recursively walks down a type and determines which SSZ-able core type it belongs to, and then returns and implementation of SSZ-able that contains marshal, unmarshal, and hash tree root related functions for use.
ToggleCache enables caching of ssz hash tree root.
# Constants
BasicArraySizeCache for HashTreeRoot.
BasicTypeCacheSize for HashTreeRoot.
RootsArraySizeCache for hash tree root.
# Variables
BytesPerChunk for an SSZ serialized object.
BytesPerLengthOffset defines a constant for off-setting serialized chunks.
StructFactory exports an implementation of a interface containing helpers for marshaling/unmarshaling, and determining the hash tree root of struct values.
UnboundedSSZFieldSizeMarker is the character used to specify a ssz field should have unbounded size, which is useful when describing slices of arrays such as [][32]byte.
# Interfaces
SSZAble defines a type which can marshal/unmarshal and compute its hash tree root according to the Simple Serialize specification.