marshalling

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBid

func MarshalBid(r *bytes.Buffer, tx *transactions.Bid) error

func MarshalBlock

func MarshalBlock(r *bytes.Buffer, b *block.Block) error

func MarshalCertificate

func MarshalCertificate(r *bytes.Buffer, c *block.Certificate) error

func MarshalCoinbase

func MarshalCoinbase(w *bytes.Buffer, c *transactions.Coinbase) error

func MarshalHashable

func MarshalHashable(r *bytes.Buffer, h *block.Header) error

func MarshalHeader

func MarshalHeader(r *bytes.Buffer, h *block.Header) error

func MarshalInput

func MarshalInput(w *bytes.Buffer, i *transactions.Input, encodeSignature bool) error

MarshalInput marshals an Input object into a bytes.Buffer.

func MarshalOutput

func MarshalOutput(w *bytes.Buffer, o *transactions.Output) error

Encode an Output struct and write to w.

func MarshalStake

func MarshalStake(r *bytes.Buffer, tx *transactions.Stake) error

func MarshalStandard

func MarshalStandard(w *bytes.Buffer, s *transactions.Standard) error

func MarshalTimelock

func MarshalTimelock(r *bytes.Buffer, tx *transactions.Timelock) error

func MarshalTx

func MarshalTx(r *bytes.Buffer, tx transactions.Transaction) error

func UnmarshalBid

func UnmarshalBid(r *bytes.Buffer, tx *transactions.Bid) error

func UnmarshalBlock

func UnmarshalBlock(r *bytes.Buffer, b *block.Block) error

func UnmarshalCertificate

func UnmarshalCertificate(r *bytes.Buffer, c *block.Certificate) error

func UnmarshalCoinbase

func UnmarshalCoinbase(w *bytes.Buffer, c *transactions.Coinbase) error

func UnmarshalHeader

func UnmarshalHeader(r *bytes.Buffer, h *block.Header) error

func UnmarshalInput

func UnmarshalInput(r *bytes.Buffer, i *transactions.Input) error

Decode an Input object from a bytes.Buffer.

func UnmarshalOutput

func UnmarshalOutput(r *bytes.Buffer, o *transactions.Output) error

Decode an Output object from r into an output struct.

func UnmarshalStake

func UnmarshalStake(r *bytes.Buffer, tx *transactions.Stake) error

func UnmarshalStandard

func UnmarshalStandard(w *bytes.Buffer, s *transactions.Standard) error

func UnmarshalTimelock

func UnmarshalTimelock(r *bytes.Buffer, tx *transactions.Timelock) error

func UnmarshalTx

func UnmarshalTx(r *bytes.Buffer) (transactions.Transaction, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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