package
0.0.0-20250108091302-c49b056c38cc
Repository: https://github.com/gatechain/gatenode-openrpc.git
Documentation: pkg.go.dev

# Functions

Decode attempts to decode a msgpack-encoded byte buffer into an object instance pointed to by objptr.
DecodeJSON attempts to decode a JSON-encoded byte buffer into an object instance pointed to by objptr.
DecodeStream is like Decode but reads from an io.Reader instead.
Encode returns a msgpack-encoded byte buffer for a given object.
EncodeJSON returns a JSON-encoded byte buffer for a given object.
EncodeLen returns len(Encode(obj)).
EncodeStream is like Encode but writes to an io.Writer instead.
NewDecoder returns a decoder object reading bytes from [r].
NewDecoderBytes returns a decoder object reading bytes from [b].
NewEncoder returns an encoder object writing bytes into [w].
NewJSONDecoder returns a json decoder object reading bytes from [r].

# Variables

CodecHandle is used to instantiate msgpack encoders and decoders with our settings (canonical, paranoid about decoding errors).
JSONHandle is used to instantiate JSON encoders and decoders with our settings (canonical, paranoid about decoding errors).

# Structs

No description provided by the author
CountingWriter is an implementation of io.Writer that tracks the number of bytes written (but discards the actual bytes).
ExtendedHeader represents a wrapped "raw" header that includes information necessary for Gatenode Nodes to be notified of new block headers and perform Data Availability Sampling.

# Interfaces

Decoder is our interface for a thing that can decode objects.

# Type aliases

No description provided by the author
RawHeader is an alias to core.Header.