Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const CodecVersion + var Codec codec.Manager + type Export struct + Amount uint64 + ChainID ids.ID + IsReturn bool + MaxFee uint64 + Nonce uint64 + PeerChainID ids.ID + To ids.ShortID + func (e *Export) Visit(v Visitor) error + type Import struct + MaxFee uint64 + Message []byte + Nonce uint64 + func (i *Import) Visit(v Visitor) error + type Payload struct + Amount uint64 + IsReturn bool + Nonce uint64 + Sender ids.ShortID + To ids.ShortID + func NewPayload(sender ids.ShortID, nonce uint64, isReturn bool, amount uint64, to ids.ShortID) (*Payload, error) + func ParsePayload(bytes []byte) (*Payload, error) + func (p *Payload) Bytes() []byte + type Transfer struct + Amount uint64 + AssetID ids.ID + ChainID ids.ID + MaxFee uint64 + Nonce uint64 + To ids.ShortID + func (t *Transfer) Visit(v Visitor) error + type Tx struct + Signature [secp256k1.SignatureLen]byte + func Parse(bytes []byte) (*Tx, error) + func Sign(utx Unsigned, key *secp256k1.PrivateKey) (*Tx, error) + func (tx *Tx) ID() (ids.ID, error) + func (tx *Tx) SenderID() (ids.ShortID, error) + type Unsigned interface + Visit func(Visitor) error + type Visitor interface + Export func(*Export) error + Import func(*Import) error + Transfer func(*Transfer) error