rlp source pure
1
1
var ErrExpectedString, ErrExpectedList, ErrCanonSize, ErrCanonInt, ErrValueTooLarge, ErrTrailingBytes, ErrUnexpectedEOF, ErrDepthLimit
1var (
2 ErrExpectedString = errors.New("rlp: expected string")
3 ErrExpectedList = errors.New("rlp: expected list")
4 ErrCanonSize = errors.New("rlp: non-canonical size")
5 ErrCanonInt = errors.New("rlp: non-canonical integer")
6 ErrValueTooLarge = errors.New("rlp: value too large")
7 ErrTrailingBytes = errors.New("rlp: trailing bytes")
8 ErrUnexpectedEOF = errors.New("rlp: unexpected eof")
9 ErrDepthLimit = errors.New("rlp: depth limit exceeded")
10)3
func EncodeBytes
EncodeBytes returns the RLP string encoding of b.
func EncodeList
EncodeList returns the RLP list encoding of already-encoded items.
func DecodeValue
DecodeValue decodes exactly one RLP item.
2
1
- errors stdlib