Versions in this module Expand all Collapse all v0 v0.12.2 Mar 18, 2021 Changes in this version + var CoinPkScript = hex.DecodeString("001431df1bde03c074d0cf21ea2529427e1499b8f1de") + type ChainIO struct + BestHeight int32 + func (c *ChainIO) GetBestBlock() (*chainhash.Hash, int32, error) + func (c *ChainIO) GetBlock(blockHash *chainhash.Hash) (*wire.MsgBlock, error) + func (c *ChainIO) GetBlockHash(blockHeight int64) (*chainhash.Hash, error) + func (c *ChainIO) GetUtxo(op *wire.OutPoint, _ []byte, heightHint uint32, _ <-chan struct{}) (*wire.TxOut, error) + type ChainNotifier struct + ConfChan chan *chainntnfs.TxConfirmation + EpochChan chan *chainntnfs.BlockEpoch + SpendChan chan *chainntnfs.SpendDetail + func (c *ChainNotifier) RegisterBlockEpochNtfn(blockEpoch *chainntnfs.BlockEpoch) (*chainntnfs.BlockEpochEvent, error) + func (c *ChainNotifier) RegisterConfirmationsNtfn(txid *chainhash.Hash, pkScript []byte, numConfs, heightHint uint32) (*chainntnfs.ConfirmationEvent, error) + func (c *ChainNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, pkScript []byte, heightHint uint32) (*chainntnfs.SpendEvent, error) + func (c *ChainNotifier) Start() error + func (c *ChainNotifier) Started() bool + func (c *ChainNotifier) Stop() error + type DummySignature struct + func (d *DummySignature) Serialize() []byte + func (d *DummySignature) Verify(_ []byte, _ *btcec.PublicKey) bool + type DummySigner struct + func (d *DummySigner) ComputeInputScript(tx *wire.MsgTx, signDesc *input.SignDescriptor) (*input.Script, error) + func (d *DummySigner) SignOutputRaw(tx *wire.MsgTx, signDesc *input.SignDescriptor) (input.Signature, error) + type SecretKeyRing struct + RootKey *btcec.PrivateKey + func (s *SecretKeyRing) DeriveKey(keyLoc keychain.KeyLocator) (keychain.KeyDescriptor, error) + func (s *SecretKeyRing) DeriveNextKey(keyFam keychain.KeyFamily) (keychain.KeyDescriptor, error) + func (s *SecretKeyRing) DerivePrivKey(keyDesc keychain.KeyDescriptor) (*btcec.PrivateKey, error) + func (s *SecretKeyRing) ECDH(_ keychain.KeyDescriptor, pubKey *btcec.PublicKey) ([32]byte, error) + func (s *SecretKeyRing) SignDigest(_ keychain.KeyDescriptor, digest [32]byte) (*btcec.Signature, error) + func (s *SecretKeyRing) SignDigestCompact(_ keychain.KeyDescriptor, digest [32]byte) ([]byte, error) + type SingleSigner struct + Privkey *btcec.PrivateKey + func (s *SingleSigner) ComputeInputScript(tx *wire.MsgTx, signDesc *input.SignDescriptor) (*input.Script, error) + func (s *SingleSigner) SignMessage(pubKey *btcec.PublicKey, msg []byte) (input.Signature, error) + func (s *SingleSigner) SignOutputRaw(tx *wire.MsgTx, signDesc *input.SignDescriptor) (input.Signature, error) + type SpendNotifier struct + func MakeMockSpendNotifier() *SpendNotifier + func (s *SpendNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, _ []byte, heightHint uint32) (*chainntnfs.SpendEvent, error) + func (s *SpendNotifier) Spend(outpoint *wire.OutPoint, height int32, txn *wire.MsgTx) + type WalletController struct + PublishedTransactions chan *wire.MsgTx + RootKey *btcec.PrivateKey + Utxos []*lnwallet.Utxo + func (w *WalletController) BackEnd() string + func (w *WalletController) ConfirmedBalance(confs int32) (vclutil.Amount, error) + func (w *WalletController) CreateSimpleTx(outputs []*wire.TxOut, _ chainfee.SatPerKWeight, _ bool) (*txauthor.AuthoredTx, error) + func (w *WalletController) FetchInputInfo(prevOut *wire.OutPoint) (*lnwallet.Utxo, error) + func (w *WalletController) FinalizePsbt(_ *psbt.Packet) error + func (w *WalletController) FundPsbt(_ *psbt.Packet, _ chainfee.SatPerKWeight) (int32, error) + func (w *WalletController) GetRecoveryInfo() (bool, float64, error) + func (w *WalletController) IsOurAddress(a vclutil.Address) bool + func (w *WalletController) IsSynced() (bool, int64, error) + func (w *WalletController) LabelTransaction(_ chainhash.Hash, _ string, _ bool) error + func (w *WalletController) LastUnusedAddress(addrType lnwallet.AddressType) (vclutil.Address, error) + func (w *WalletController) LeaseOutput(wtxmgr.LockID, wire.OutPoint) (time.Time, error) + func (w *WalletController) ListTransactionDetails(_, _ int32) ([]*lnwallet.TransactionDetail, error) + func (w *WalletController) ListUnspentWitness(minconfirms, maxconfirms int32) ([]*lnwallet.Utxo, error) + func (w *WalletController) LockOutpoint(o wire.OutPoint) + func (w *WalletController) NewAddress(addrType lnwallet.AddressType, change bool) (vclutil.Address, error) + func (w *WalletController) PublishTransaction(tx *wire.MsgTx, _ string) error + func (w *WalletController) ReleaseOutput(wtxmgr.LockID, wire.OutPoint) error + func (w *WalletController) SendOutputs(outputs []*wire.TxOut, _ chainfee.SatPerKWeight, _ int32, _ string) (*wire.MsgTx, error) + func (w *WalletController) Start() error + func (w *WalletController) Stop() error + func (w *WalletController) SubscribeTransactions() (lnwallet.TransactionSubscription, error) + func (w *WalletController) UnlockOutpoint(o wire.OutPoint)