Versions in this module Expand all Collapse all v0 v0.0.1 Sep 7, 2020 Changes in this version + var ErrNotStateBased = errors.New("not state based") + var ErrNotUTXO = errors.New("not UTXO") + type NewTxFunc = func() (Tx, error) + type Serializer interface + Serialize func() ([]byte, error) + SerializedSize func() uint64 + type Tx interface + Copy func() Tx + Crypto func() *cryptos.Crypto + TxStateBased func() (TxStateBased, bool) + TxUTXO func() (TxUTXO, bool) + func New(c *cryptos.Crypto) (Tx, error) + func NewBCH() (Tx, error) + func NewBTC() (Tx, error) + func NewDCR() (Tx, error) + func NewDOGE() (Tx, error) + func NewLTC() (Tx, error) + type TxStateBased interface + type TxUTXO interface + AddInput func(txID []byte, idx uint32, script []byte, amount uint64) error + AddOutput func(value uint64, script []byte) + InputSequenceNumber func(idx int) uint32 + InputSignature func(idx int, hashType uint32, privKey key.Private) ([]byte, error) + InputSignatureScript func(idx int) []byte + SetInputSequenceNumber func(idx int, seq uint32) + SetInputSignatureScript func(idx int, ss []byte) + SetLockDuration func(d time.Duration) + SetLockTime func(lt time.Time) + SetLockTimeUInt32 func(lt uint32) + SignP2PKHInput func(idx int, hashType uint32, privKey key.Private) error + SignP2PKInput func(idx int, hashType uint32, privKey key.Private) error