Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRlpMinusValue = errors.New("rlp: negative values are not encodable") ErrStringPrefix = errors.New("rlp: strings must start with 0x") ErrNonCanonicalSize = errors.New("rlp: non-canonical length encoding") ErrNonCanonicalValue = errors.New("rlp: single byte < 0x80 must be encoded without length prefix") )
Functions ¶
func DecodeOne ¶
DecodeOne decodes a single RLP entry from buf and returns the decoded value along with the remaining bytes. The value is either []byte (for strings) or []any (for lists).
func DecodeUint64 ¶
DecodeUint64 returns a uint64 value for a 0~8 bytes long value, and will panic if the buffer is longer than that
func EncodeValue ¶
EncodeValue encodes a single value into rlp format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.