Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + const MaxElements + const MaxProofSize + const MaxScriptSize + const MaxTransactionSize + const OverwinterFlag + const Version5 + const VersionGroupIDV5 + var ErrInvalidStructure = errors.New("invalid transaction structure") + var ErrNilReader = errors.New("nil reader") + var ErrNilWriter = errors.New("nil writer") + var ErrNonCanonical = errors.New("non-canonical compactSize") + var ErrTooLarge = errors.New("declared size exceeds limit") + var ErrTrailingData = errors.New("trailing data after transaction") + var ErrUnsupportedVersion = errors.New("only overwintered Zcash v5 transactions are supported") + func Serialize(tx *Transaction) ([]byte, error) + func SerializeToWriter(tx *Transaction, w io.Writer) error + type OrchardAction struct + CMX [32]byte + CV [32]byte + EncCiphertext [580]byte + EphemeralKey [32]byte + Nullifier [32]byte + OutCiphertext [80]byte + RK [32]byte + type OrchardBundle struct + Actions []OrchardAction + Anchor [32]byte + BindingSig [64]byte + Flags byte + Proofs []byte + SpendAuthSigs [][64]byte + ValueBalance int64 + type OutPoint struct + Hash [32]byte + Index uint32 + type SaplingBundle struct + Anchor [32]byte + BindingSig [64]byte + OutputProofs [][192]byte + Outputs []SaplingOutput + SpendAuthSigs [][64]byte + SpendProofs [][192]byte + Spends []SaplingSpend + ValueBalance int64 + type SaplingOutput struct + CMU [32]byte + CV [32]byte + EncCiphertext [580]byte + EphemeralKey [32]byte + OutCiphertext [80]byte + type SaplingSpend struct + CV [32]byte + Nullifier [32]byte + RK [32]byte + type Transaction struct + ConsensusBranchID uint32 + ExpiryHeight uint32 + Header uint32 + LockTime uint32 + Orchard OrchardBundle + Sapling SaplingBundle + TransparentInputs []TxIn + TransparentOutputs []TxOut + VersionGroupID uint32 + func NewTransactionV5(consensusBranchID uint32) *Transaction + func Parse(data []byte) (*Transaction, error) + func ParseFromReader(r io.Reader) (*Transaction, error) + func (tx *Transaction) AuthDigest() [32]byte + func (tx *Transaction) Hash() [32]byte + func (tx *Transaction) TxID() [32]byte + func (tx *Transaction) TxIDString() string + func (tx *Transaction) Validate() error + func (tx *Transaction) Version() uint32 + type TxIn struct + PreviousOutput OutPoint + ScriptSig []byte + Sequence uint32 + type TxOut struct + ScriptPubKey []byte + Value int64