rct_list

package
Version: v0.0.0-...-2d4cb63 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MultiCodecType = uint64(cid.EthTxReceipt) // TODO: TBD
	MultiHashType  = uint64(multihash.KECCAK_256)
)

Functions

func AddSupportToChooser

AddSupportToChooser takes an existing node prototype chooser and subs in Receipts for the eth receipt list multicodec code.

func AppendEncode

func AppendEncode(enc []byte, inNode ipld.Node) ([]byte, error)

AppendEncode is like Encode, but it uses a destination buffer directly. This means less copying of bytes, and if the destination has enough capacity, fewer allocations.

func Decode

func Decode(na ipld.NodeAssembler, in io.Reader) error

Decode provides an IPLD codec decode interface for eth receipt list IPLDs. This function is registered via the go-ipld-prime link loader for multicodec code tbd when this package is invoked via init.

func DecodeBytes

func DecodeBytes(na ipld.NodeAssembler, src []byte) error

DecodeBytes is like Decode, but it uses an input buffer directly. Decode will grab or read all the bytes from an io.Reader anyway, so this can save having to copy the bytes or create a bytes.Buffer.

func DecodeRcts

func DecodeRcts(na ipld.NodeAssembler, rcts []*types.Receipt) error

DecodeRcts unpacks a list of go-ethereum Receipts into the NodeAssembler

func Decoder deprecated

This function has been deprecated.
func Decoder(na ipld.NodeAssembler, r io.Reader) error

Deprecated: use Decode instead.

func Encode

func Encode(node ipld.Node, w io.Writer) error

Encode provides an IPLD codec encode interface for eth receipt list IPLDs. This function is registered via the go-ipld-prime link loader for multicodec code (tbd) when this package is invoked via init.

func EncodeRcts

func EncodeRcts(rcts *[]*types.Receipt, inNode ipld.Node) error

EncodeRcts packs the node into a go-ethereum Receipts

func Encoder deprecated

This function has been deprecated.
func Encoder(inNode ipld.Node, w io.Writer) error

Deprecated: use Encode instead.

func Marshal deprecated

This function has been deprecated.
func Marshal(inNode ipld.Node, w io.Writer) error

Deprecated: use Encode instead.

func Unmarshal deprecated

This function has been deprecated.
func Unmarshal(na ipld.NodeAssembler, r io.Reader) error

Deprecated: use Decode instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL