Documentation ¶
Index ¶
- Variables
- func AttachSignatureToInput(in *wire.TxIn, sig []byte, pkData []byte) error
- func CreateWireTx(inputs []memo.UTXO, outputs []*memo.Output) (*wire.MsgTx, error)
- func FaucetTx(pkHash []byte, faucetGetter InputGetter, faucetKey wallet.PrivateKey) (*memo.Tx, memo.UTXO, error)
- func GetAddressOutput(address wallet.Address, quantity int64) *memo.Output
- func GetMemoTx(tx *wire.MsgTx, utxos []memo.UTXO, outputs []*memo.Output) *memo.Tx
- func GetNonPointerTxInputs(pointerTxInputs []*memo.TxInput) []memo.TxInput
- func InputSignature(tx *wire.MsgTx, index int, keyRing wallet.KeyRing, spendOuts []memo.TxInput) ([]byte, error)
- func InputSignatureSingle(tx *wire.MsgTx, index int, privateKey wallet.PrivateKey, prevOut memo.Out) ([]byte, error)
- func Multi(request MultiRequest) ([]*memo.Tx, error)
- func Sign(msg *wire.MsgTx, inputs []memo.TxInput, keyRing wallet.KeyRing) error
- func Tx(request TxRequest) (*memo.Tx, error)
- func TxUnsigned(request TxRequest) (*memo.Tx, error)
- type Create
- type FaucetSaver
- type InputGetter
- type InputGetterOld
- type InputGetterWrapper
- func (w *InputGetterWrapper) AddChangeUTXO(utxo memo.UTXO)
- func (w InputGetterWrapper) GetPkHashes() [][]byte
- func (w *InputGetterWrapper) GetUTXOs(request *memo.UTXORequest) ([]memo.UTXO, error)
- func (w *InputGetterWrapper) MarkUTXOsUsed(utxos []memo.UTXO)
- func (w *InputGetterWrapper) NewTx()
- func (w *InputGetterWrapper) SetPkHashesToUse(pkHashes [][]byte)
- type MultiRequest
- type TxRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilInputGetterError = fmt.Errorf("error nil input getter") NotEnoughValueError = fmt.Errorf("error unable to find enough value to spend") NotEnoughTokenValueError = fmt.Errorf("error unable to find enough token value to spend") BelowDustLimitError = fmt.Errorf("error output below dust limit") )
Functions ¶
func AttachSignatureToInput ¶
func CreateWireTx ¶
func FaucetTx ¶
func FaucetTx(pkHash []byte, faucetGetter InputGetter, faucetKey wallet.PrivateKey) (*memo.Tx, memo.UTXO, error)
func GetNonPointerTxInputs ¶
func InputSignature ¶
func InputSignatureSingle ¶
Types ¶
type Create ¶
type Create struct { Request TxRequest PotentialInputs []memo.UTXO InputsToUse []memo.UTXO Outputs []*memo.Output }
func (Create) CheckOutputs ¶
func (Create) GetQuickMemoTx ¶
type FaucetSaver ¶
type InputGetter ¶
type InputGetter interface { SetPkHashesToUse([][]byte) GetUTXOs(*memo.UTXORequest) ([]memo.UTXO, error) MarkUTXOsUsed([]memo.UTXO) AddChangeUTXO(memo.UTXO) NewTx() }
func GetWrapper ¶
func GetWrapper(getter InputGetterOld, pkHash []byte) InputGetter
func GetWrapperMultiKey ¶
func GetWrapperMultiKey(getter InputGetterOld, pkHashes [][]byte) InputGetter
type InputGetterOld ¶
type InputGetterWrapper ¶
type InputGetterWrapper struct { Old InputGetterOld PkHashes [][]byte UTXOs []memo.UTXO Used []memo.UTXO // contains filtered or unexported fields }
func (*InputGetterWrapper) AddChangeUTXO ¶
func (w *InputGetterWrapper) AddChangeUTXO(utxo memo.UTXO)
func (InputGetterWrapper) GetPkHashes ¶
func (w InputGetterWrapper) GetPkHashes() [][]byte
func (*InputGetterWrapper) GetUTXOs ¶
func (w *InputGetterWrapper) GetUTXOs(request *memo.UTXORequest) ([]memo.UTXO, error)
func (*InputGetterWrapper) MarkUTXOsUsed ¶
func (w *InputGetterWrapper) MarkUTXOsUsed(utxos []memo.UTXO)
func (*InputGetterWrapper) NewTx ¶
func (w *InputGetterWrapper) NewTx()
func (*InputGetterWrapper) SetPkHashesToUse ¶
func (w *InputGetterWrapper) SetPkHashesToUse(pkHashes [][]byte)
type MultiRequest ¶
type MultiRequest struct { Outputs []*memo.Output Getter InputGetter FaucetGetter InputGetter FaucetSaver FaucetSaver InputsToUse []memo.UTXO KeyRing wallet.KeyRing Change wallet.Change }
type TxRequest ¶
type TxRequest struct { Getter InputGetter InputsToUse []memo.UTXO Outputs []*memo.Output Change wallet.Change KeyRing wallet.KeyRing }
func (TxRequest) GetTokenHash ¶
func (TxRequest) GetTokenSendOutput ¶
Click to show internal directories.
Click to hide internal directories.