rlp

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package rlp implements the simple byte slice and lists of byte slices encoding/decoding using recursive length prefix encoding scheme as per spec https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBytes

func DecodeBytes(input []byte) ([]byte, error)

DecodeBytes returns the byte slices contained in the given RLP encoded byte slice.

func DecodeBytesList

func DecodeBytesList(input []byte) ([][]byte, error)

DecodeBytesList returns the list of byte slices contained in the given RLP encoded byte slice.

func EncodeBytes

func EncodeBytes(item []byte) []byte

EncodeBytes returns a byte slice containing the RLP encoding of the given byte slice.

func EncodeBytesList

func EncodeBytesList(items [][]byte) []byte

EncodeBytesList returns a byte slice containing the RLP encoding of the given list of byte slices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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