Documentation
¶
Index ¶
- func Extract(p *Packet) (*wire.MsgTx, error)
- func MaybeFinalize(p *Packet, inIndex int) (bool, error)
- func MaybeFinalizeAll(p *Packet) error
- func SumUtxoInputValues(packet *Packet) (int64, error)
- func TxOutsEqual(out1, out2 *wire.TxOut) bool
- func VerifyInputPrevOutpointsEqual(ins1, ins2 []*wire.TxIn) error
- func VerifyOutputsEqual(outs1, outs2 []*wire.TxOut) error
- type PInput
- type POutput
- type Packet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeFinalizeAll ¶
func SumUtxoInputValues ¶ added in v0.5.0
SumUtxoInputValues tries to extract the sum of all inputs specified in the UTXO fields of the PSBT. An error is returned if an input is specified that does not contain any UTXO information.
func TxOutsEqual ¶ added in v0.5.0
TxOutsEqual returns true if two transaction outputs are equal.
func VerifyInputPrevOutpointsEqual ¶ added in v0.5.0
VerifyInputPrevOutpointsEqual verifies that the previous outpoints of the two slices of transaction inputs are deep equal to each other. We do the length check and manual loop to provide better error messages to the user than just returning "not equal".
func VerifyOutputsEqual ¶ added in v0.5.0
VerifyOutputsEqual verifies that the two slices of transaction outputs are deep equal to each other. We do the length check and manual loop to provide better error messages to the user than just returning "not equal".