Documentation ¶
Overview ¶
Package test is a generated GoMock package.
Index ¶
- func CreateKey(index int32) (*btcec.PrivateKey, *btcec.PublicKey)
- func NewSignatureFromInt(r, s uint32) *ecdsa.Signature
- type ChainNotifierClient
- type MockChainNotifierClient
- func (m *MockChainNotifierClient) EXPECT() *MockChainNotifierClientMockRecorder
- func (m *MockChainNotifierClient) RegisterBlockEpochNtfn(ctx context.Context) (chan int32, chan error, error)
- func (m *MockChainNotifierClient) RegisterConfirmationsNtfn(ctx context.Context, txid *chainhash.Hash, pkScript []byte, ...) (chan *chainntnfs.TxConfirmation, chan error, error)
- func (m *MockChainNotifierClient) RegisterSpendNtfn(ctx context.Context, outpoint *wire.OutPoint, pkScript []byte, ...) (chan *chainntnfs.SpendDetail, chan error, error)
- type MockChainNotifierClientMockRecorder
- func (mr *MockChainNotifierClientMockRecorder) RegisterBlockEpochNtfn(ctx interface{}) *gomock.Call
- func (mr *MockChainNotifierClientMockRecorder) RegisterConfirmationsNtfn(ctx, txid, pkScript, numConfs, heightHint interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockChainNotifierClientMockRecorder) RegisterSpendNtfn(ctx, outpoint, pkScript, heightHint interface{}) *gomock.Call
- type MockLightning
- func (m *MockLightning) AddInvoice(_ context.Context, in *invoicesrpc.AddInvoiceData) (lntypes.Hash, string, error)
- func (m *MockLightning) ChannelBackup(_ context.Context, op wire.OutPoint) ([]byte, error)
- func (m *MockLightning) ChannelBackups(context.Context) ([]byte, error)
- func (m *MockLightning) CloseChannel(context.Context, *wire.OutPoint, bool, int32, btcutil.Address) (chan lndclient.CloseChannelUpdate, chan error, error)
- func (m *MockLightning) ClosedChannels(context.Context) ([]lndclient.ClosedChannel, error)
- func (m *MockLightning) ConfirmedWalletBalance(context.Context) (btcutil.Amount, error)
- func (m *MockLightning) Connect(_ context.Context, peer route.Vertex, host string, _ bool) error
- func (m *MockLightning) Connections() map[route.Vertex]string
- func (m *MockLightning) DecodePaymentRequest(context.Context, string) (*lndclient.PaymentRequest, error)
- func (m *MockLightning) EstimateFeeToP2WSH(context.Context, btcutil.Amount, int32) (btcutil.Amount, error)
- func (m *MockLightning) ForwardingHistory(context.Context, lndclient.ForwardingHistoryRequest) (*lndclient.ForwardingHistoryResponse, error)
- func (m *MockLightning) GetChanInfo(ctx context.Context, cid uint64) (*lndclient.ChannelEdge, error)
- func (m *MockLightning) GetInfo(context.Context) (*lndclient.Info, error)
- func (m *MockLightning) ListChannels(context.Context, bool, bool) ([]lndclient.ChannelInfo, error)
- func (m *MockLightning) ListInvoices(context.Context, lndclient.ListInvoicesRequest) (*lndclient.ListInvoicesResponse, error)
- func (m *MockLightning) ListPayments(context.Context, lndclient.ListPaymentsRequest) (*lndclient.ListPaymentsResponse, error)
- func (m *MockLightning) ListTransactions(_ context.Context, _, _ int32, _ ...lndclient.ListTransactionsOption) ([]lndclient.Transaction, error)
- func (m *MockLightning) LookupInvoice(_ context.Context, hash lntypes.Hash) (*lndclient.Invoice, error)
- func (m *MockLightning) OpenChannel(_ context.Context, peer route.Vertex, localSat, pushSat btcutil.Amount, _ bool, ...) (*wire.OutPoint, error)
- func (m *MockLightning) PayInvoice(_ context.Context, invoice string, _ btcutil.Amount, _ *uint64) chan lndclient.PaymentResult
- func (m *MockLightning) PendingChannels(context.Context) (*lndclient.PendingChannels, error)
- func (m *MockLightning) SubscribeChannelBackups(ctx context.Context) (<-chan lnrpc.ChanBackupSnapshot, <-chan error, error)
- func (m *MockLightning) SubscribeChannelEvents(ctx context.Context) (<-chan *lndclient.ChannelEventUpdate, <-chan error, error)
- func (m *MockLightning) UpdateChanPolicy(ctx context.Context, req lndclient.PolicyUpdateRequest, ...) error
- func (m *MockLightning) WaitForFinished()
- type MockSigner
- func (s *MockSigner) ComputeInputScript(context.Context, *wire.MsgTx, []*lndclient.SignDescriptor, []*wire.TxOut) ([]*input.Script, error)
- func (s *MockSigner) DeriveSharedKey(context.Context, *btcec.PublicKey, *keychain.KeyLocator) ([32]byte, error)
- func (s *MockSigner) MuSig2Cleanup(context.Context, [32]byte) error
- func (s *MockSigner) MuSig2CombineSig(context.Context, [32]byte, [][]byte) (bool, []byte, error)
- func (s *MockSigner) MuSig2CreateSession(context.Context, input.MuSig2Version, *keychain.KeyLocator, [][]byte, ...) (*input.MuSig2SessionInfo, error)
- func (s *MockSigner) MuSig2RegisterNonces(context.Context, [32]byte, [][66]byte) (bool, error)
- func (s *MockSigner) MuSig2Sign(context.Context, [32]byte, [32]byte, bool) ([]byte, error)
- func (s *MockSigner) SignMessage(_ context.Context, _ []byte, _ keychain.KeyLocator, ...) ([]byte, error)
- func (s *MockSigner) SignOutputRaw(_ context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor, ...) ([][]byte, error)
- func (s *MockSigner) VerifyMessage(_ context.Context, msg, sig []byte, _ [33]byte, ...) (bool, error)
- type MockSignerClient
- func (m *MockSignerClient) ComputeInputScript(ctx context.Context, tx *wire.MsgTx, ...) ([]*input.Script, error)
- func (m *MockSignerClient) DeriveSharedKey(ctx context.Context, ephemeralPubKey *btcec.PublicKey, ...) ([32]byte, error)
- func (m *MockSignerClient) EXPECT() *MockSignerClientMockRecorder
- func (m *MockSignerClient) MuSig2Cleanup(ctx context.Context, sessionID [32]byte) error
- func (m *MockSignerClient) MuSig2CombineSig(ctx context.Context, sessionID [32]byte, otherPartialSigs [][]byte) (bool, []byte, error)
- func (m *MockSignerClient) MuSig2CreateSession(ctx context.Context, version input.MuSig2Version, ...) (*input.MuSig2SessionInfo, error)
- func (m *MockSignerClient) MuSig2RegisterNonces(ctx context.Context, sessionID [32]byte, nonces [][66]byte) (bool, error)
- func (m *MockSignerClient) MuSig2Sign(ctx context.Context, sessionID, message [32]byte, cleanup bool) ([]byte, error)
- func (m *MockSignerClient) SignMessage(ctx context.Context, msg []byte, locator keychain.KeyLocator, ...) ([]byte, error)
- func (m *MockSignerClient) SignOutputRaw(ctx context.Context, tx *wire.MsgTx, ...) ([][]byte, error)
- func (m *MockSignerClient) VerifyMessage(ctx context.Context, msg, sig []byte, pubkey [33]byte, ...) (bool, error)
- type MockSignerClientMockRecorder
- func (mr *MockSignerClientMockRecorder) ComputeInputScript(ctx, tx, signDescriptors, prevOutputs interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) DeriveSharedKey(ctx, ephemeralPubKey, keyLocator interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) MuSig2Cleanup(ctx, sessionID interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) MuSig2CombineSig(ctx, sessionID, otherPartialSigs interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) MuSig2CreateSession(ctx, version, signerLoc, signers interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) MuSig2RegisterNonces(ctx, sessionID, nonces interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) MuSig2Sign(ctx, sessionID, message, cleanup interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) SignMessage(ctx, msg, locator interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) SignOutputRaw(ctx, tx, signDescriptors, prevOutputs interface{}) *gomock.Call
- func (mr *MockSignerClientMockRecorder) VerifyMessage(ctx, msg, sig, pubkey interface{}, opts ...interface{}) *gomock.Call
- type MockWalletKit
- func (m *MockWalletKit) AddTx(tx *wire.MsgTx)
- func (m *MockWalletKit) BumpFee(context.Context, wire.OutPoint, chainfee.SatPerKWeight) error
- func (m *MockWalletKit) DeriveKey(_ context.Context, in *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKit) DeriveNextKey(_ context.Context, family int32) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKit) EstimateFeeRate(_ context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
- func (m *MockWalletKit) FinalizePsbt(_ context.Context, _ *psbt.Packet, _ string) (*psbt.Packet, *wire.MsgTx, error)
- func (m *MockWalletKit) FundPsbt(_ context.Context, _ *walletrpc.FundPsbtRequest) (*psbt.Packet, int32, []*walletrpc.UtxoLease, error)
- func (m *MockWalletKit) ImportPublicKey(ctx context.Context, pubkey *btcec.PublicKey, addrType lnwallet.AddressType) error
- func (m *MockWalletKit) ImportTaprootScript(_ context.Context, _ *waddrmgr.Tapscript) (btcutil.Address, error)
- func (m *MockWalletKit) LeaseOutput(context.Context, wtxmgr.LockID, wire.OutPoint, time.Duration) (time.Time, error)
- func (m *MockWalletKit) ListAccounts(context.Context, string, walletrpc.AddressType) ([]*walletrpc.Account, error)
- func (m *MockWalletKit) ListLeases(context.Context) ([]lndclient.LeaseDescriptor, error)
- func (m *MockWalletKit) ListSweeps(_ context.Context) ([]string, error)
- func (m *MockWalletKit) ListSweepsVerbose(_ context.Context) ([]lnwallet.TransactionDetail, error)
- func (m *MockWalletKit) ListUnspent(context.Context, int32, int32, ...lndclient.ListUnspentOption) ([]*lnwallet.Utxo, error)
- func (m *MockWalletKit) NextAddr(context.Context, string, walletrpc.AddressType, bool) (btcutil.Address, error)
- func (m *MockWalletKit) PublishTransaction(_ context.Context, tx *wire.MsgTx, _ string) error
- func (m *MockWalletKit) ReleaseOutput(context.Context, wtxmgr.LockID, wire.OutPoint) error
- func (m *MockWalletKit) SendOutputs(_ context.Context, outputs []*wire.TxOut, _ chainfee.SatPerKWeight, ...) (*wire.MsgTx, error)
- func (m *MockWalletKit) SignPsbt(_ context.Context, _ *psbt.Packet) (*psbt.Packet, error)
- type MockWalletKitClient
- func (m *MockWalletKitClient) BumpFee(arg0 context.Context, arg1 wire.OutPoint, arg2 chainfee.SatPerKWeight) error
- func (m *MockWalletKitClient) DeriveKey(ctx context.Context, locator *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKitClient) DeriveNextKey(ctx context.Context, family int32) (*keychain.KeyDescriptor, error)
- func (m *MockWalletKitClient) EXPECT() *MockWalletKitClientMockRecorder
- func (m *MockWalletKitClient) EstimateFeeRate(ctx context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
- func (m *MockWalletKitClient) FinalizePsbt(ctx context.Context, packet *psbt.Packet, account string) (*psbt.Packet, *wire.MsgTx, error)
- func (m *MockWalletKitClient) FundPsbt(ctx context.Context, req *walletrpc.FundPsbtRequest) (*psbt.Packet, int32, []*walletrpc.UtxoLease, error)
- func (m *MockWalletKitClient) ImportPublicKey(ctx context.Context, pubkey *btcec.PublicKey, addrType lnwallet.AddressType) error
- func (m *MockWalletKitClient) ImportTaprootScript(ctx context.Context, tapscript *waddrmgr.Tapscript) (btcutil.Address, error)
- func (m *MockWalletKitClient) LeaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint, ...) (time.Time, error)
- func (m *MockWalletKitClient) ListAccounts(ctx context.Context, name string, addressType walletrpc.AddressType) ([]*walletrpc.Account, error)
- func (m *MockWalletKitClient) ListLeases(ctx context.Context) ([]lndclient.LeaseDescriptor, error)
- func (m *MockWalletKitClient) ListSweeps(ctx context.Context) ([]string, error)
- func (m *MockWalletKitClient) ListSweepsVerbose(ctx context.Context) ([]lnwallet.TransactionDetail, error)
- func (m *MockWalletKitClient) ListUnspent(ctx context.Context, minConfs, maxConfs int32, ...) ([]*lnwallet.Utxo, error)
- func (m *MockWalletKitClient) NextAddr(ctx context.Context, accountName string, addressType walletrpc.AddressType, ...) (btcutil.Address, error)
- func (m *MockWalletKitClient) PublishTransaction(ctx context.Context, tx *wire.MsgTx, label string) error
- func (m *MockWalletKitClient) ReleaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint) error
- func (m *MockWalletKitClient) SendOutputs(ctx context.Context, outputs []*wire.TxOut, feeRate chainfee.SatPerKWeight, ...) (*wire.MsgTx, error)
- func (m *MockWalletKitClient) SignPsbt(ctx context.Context, packet *psbt.Packet) (*psbt.Packet, error)
- type MockWalletKitClientMockRecorder
- func (mr *MockWalletKitClientMockRecorder) BumpFee(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) DeriveKey(ctx, locator interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) DeriveNextKey(ctx, family interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) EstimateFeeRate(ctx, confTarget interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) FinalizePsbt(ctx, packet, account interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) FundPsbt(ctx, req interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ImportPublicKey(ctx, pubkey, addrType interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ImportTaprootScript(ctx, tapscript interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) LeaseOutput(ctx, lockID, op, leaseTime interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListAccounts(ctx, name, addressType interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListLeases(ctx interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListSweeps(ctx interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListSweepsVerbose(ctx interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ListUnspent(ctx, minConfs, maxConfs interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) NextAddr(ctx, accountName, addressType, change interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) PublishTransaction(ctx, tx, label interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) ReleaseOutput(ctx, lockID, op interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) SendOutputs(ctx, outputs, feeRate, label interface{}) *gomock.Call
- func (mr *MockWalletKitClientMockRecorder) SignPsbt(ctx, packet interface{}) *gomock.Call
- type PaymentChannelMessage
- type ScbKeyRing
- type SignOutputRawRequest
- type SignerClient
- type WalletKitClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKey ¶
func CreateKey(index int32) (*btcec.PrivateKey, *btcec.PublicKey)
CreateKey returns a deterministically generated key pair.
func NewSignatureFromInt ¶
NewSignatureFromInt creates a new signature from uint32 scalar values.
Types ¶
type ChainNotifierClient ¶
type ChainNotifierClient interface { lndclient.ChainNotifierClient }
type MockChainNotifierClient ¶
type MockChainNotifierClient struct {
// contains filtered or unexported fields
}
MockChainNotifierClient is a mock of ChainNotifierClient interface.
func NewMockChainNotifierClient ¶
func NewMockChainNotifierClient(ctrl *gomock.Controller) *MockChainNotifierClient
NewMockChainNotifierClient creates a new mock instance.
func (*MockChainNotifierClient) EXPECT ¶
func (m *MockChainNotifierClient) EXPECT() *MockChainNotifierClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainNotifierClient) RegisterBlockEpochNtfn ¶
func (m *MockChainNotifierClient) RegisterBlockEpochNtfn(ctx context.Context) (chan int32, chan error, error)
RegisterBlockEpochNtfn mocks base method.
func (*MockChainNotifierClient) RegisterConfirmationsNtfn ¶
func (m *MockChainNotifierClient) RegisterConfirmationsNtfn(ctx context.Context, txid *chainhash.Hash, pkScript []byte, numConfs, heightHint int32, opts ...lndclient.NotifierOption) (chan *chainntnfs.TxConfirmation, chan error, error)
RegisterConfirmationsNtfn mocks base method.
func (*MockChainNotifierClient) RegisterSpendNtfn ¶
func (m *MockChainNotifierClient) RegisterSpendNtfn(ctx context.Context, outpoint *wire.OutPoint, pkScript []byte, heightHint int32) (chan *chainntnfs.SpendDetail, chan error, error)
RegisterSpendNtfn mocks base method.
type MockChainNotifierClientMockRecorder ¶
type MockChainNotifierClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChainNotifierClientMockRecorder is the mock recorder for MockChainNotifierClient.
func (*MockChainNotifierClientMockRecorder) RegisterBlockEpochNtfn ¶
func (mr *MockChainNotifierClientMockRecorder) RegisterBlockEpochNtfn(ctx interface{}) *gomock.Call
RegisterBlockEpochNtfn indicates an expected call of RegisterBlockEpochNtfn.
func (*MockChainNotifierClientMockRecorder) RegisterConfirmationsNtfn ¶
func (mr *MockChainNotifierClientMockRecorder) RegisterConfirmationsNtfn(ctx, txid, pkScript, numConfs, heightHint interface{}, opts ...interface{}) *gomock.Call
RegisterConfirmationsNtfn indicates an expected call of RegisterConfirmationsNtfn.
func (*MockChainNotifierClientMockRecorder) RegisterSpendNtfn ¶
func (mr *MockChainNotifierClientMockRecorder) RegisterSpendNtfn(ctx, outpoint, pkScript, heightHint interface{}) *gomock.Call
RegisterSpendNtfn indicates an expected call of RegisterSpendNtfn.
type MockLightning ¶
type MockLightning struct { lndclient.LightningClient SendPaymentChannel chan PaymentChannelMessage NodePubkey string ChainParams *chaincfg.Params ScbKeyRing *ScbKeyRing Transactions []lndclient.Transaction Sweeps []string // Invoices is a set of invoices that have been created by the mock, // keyed by hash string. Invoices map[lntypes.Hash]*lndclient.Invoice Channels []lndclient.ChannelInfo ChannelsClosed []lndclient.ClosedChannel ChannelsPending []lndclient.PendingChannel ForwardingEvents []lndclient.ForwardingEvent Payments []lndclient.Payment // contains filtered or unexported fields }
func NewMockLightning ¶
func NewMockLightning() *MockLightning
func (*MockLightning) AddInvoice ¶
func (m *MockLightning) AddInvoice(_ context.Context, in *invoicesrpc.AddInvoiceData) (lntypes.Hash, string, error)
func (*MockLightning) ChannelBackup ¶
ChannelBackup retrieves the backup for a particular channel. The backup is returned as an encrypted chanbackup.Single payload.
func (*MockLightning) ChannelBackups ¶
func (m *MockLightning) ChannelBackups(context.Context) ([]byte, error)
ChannelBackups retrieves backups for all existing pending open and open channels. The backups are returned as an encrypted chanbackup.Multi payload.
func (*MockLightning) CloseChannel ¶
func (*MockLightning) ClosedChannels ¶
func (m *MockLightning) ClosedChannels( context.Context) ([]lndclient.ClosedChannel, error)
ClosedChannels returns a list of our closed channels.
func (*MockLightning) ConfirmedWalletBalance ¶
func (*MockLightning) Connections ¶
func (m *MockLightning) Connections() map[route.Vertex]string
func (*MockLightning) DecodePaymentRequest ¶
func (m *MockLightning) DecodePaymentRequest(context.Context, string) (*lndclient.PaymentRequest, error)
func (*MockLightning) EstimateFeeToP2WSH ¶
func (*MockLightning) ForwardingHistory ¶
func (m *MockLightning) ForwardingHistory(context.Context, lndclient.ForwardingHistoryRequest) (*lndclient.ForwardingHistoryResponse, error)
ForwardingHistory returns the mock's set of forwarding events.
func (*MockLightning) GetChanInfo ¶
func (m *MockLightning) GetChanInfo(ctx context.Context, cid uint64) (*lndclient.ChannelEdge, error)
func (*MockLightning) ListChannels ¶
func (m *MockLightning) ListChannels(context.Context, bool, bool) ([]lndclient.ChannelInfo, error)
ListChannels retrieves all channels of the backing lnd node.
func (*MockLightning) ListInvoices ¶
func (m *MockLightning) ListInvoices(context.Context, lndclient.ListInvoicesRequest) (*lndclient.ListInvoicesResponse, error)
ListInvoices returns our mock's invoices.
func (*MockLightning) ListPayments ¶
func (m *MockLightning) ListPayments(context.Context, lndclient.ListPaymentsRequest) (*lndclient.ListPaymentsResponse, error)
ListPayments makes a paginated call to our list payments endpoint.
func (*MockLightning) ListTransactions ¶
func (m *MockLightning) ListTransactions(_ context.Context, _, _ int32, _ ...lndclient.ListTransactionsOption) ([]lndclient.Transaction, error)
ListTransactions returns all known transactions of the backing lnd node.
func (*MockLightning) LookupInvoice ¶
func (m *MockLightning) LookupInvoice(_ context.Context, hash lntypes.Hash) (*lndclient.Invoice, error)
LookupInvoice looks up an invoice in the mock's set of stored invoices. If it is not found, this call will fail. Note that these invoices should be settled using settleInvoice to have a preimage, settled state and settled date set.
func (*MockLightning) OpenChannel ¶
func (*MockLightning) PayInvoice ¶
func (m *MockLightning) PayInvoice(_ context.Context, invoice string, _ btcutil.Amount, _ *uint64) chan lndclient.PaymentResult
PayInvoice pays an invoice.
func (*MockLightning) PendingChannels ¶
func (m *MockLightning) PendingChannels( context.Context) (*lndclient.PendingChannels, error)
func (*MockLightning) SubscribeChannelBackups ¶
func (m *MockLightning) SubscribeChannelBackups(ctx context.Context, ) (<-chan lnrpc.ChanBackupSnapshot, <-chan error, error)
func (*MockLightning) SubscribeChannelEvents ¶
func (m *MockLightning) SubscribeChannelEvents(ctx context.Context) ( <-chan *lndclient.ChannelEventUpdate, <-chan error, error)
func (*MockLightning) UpdateChanPolicy ¶
func (m *MockLightning) UpdateChanPolicy(ctx context.Context, req lndclient.PolicyUpdateRequest, chanPoint *wire.OutPoint) error
func (*MockLightning) WaitForFinished ¶
func (m *MockLightning) WaitForFinished()
type MockSigner ¶
type MockSigner struct { SignOutputRawChannel chan SignOutputRawRequest Height int32 NodePubkey string Signature []byte SignatureMsg string }
func NewMockSigner ¶
func NewMockSigner() *MockSigner
func (*MockSigner) ComputeInputScript ¶
func (*MockSigner) DeriveSharedKey ¶
func (s *MockSigner) DeriveSharedKey(context.Context, *btcec.PublicKey, *keychain.KeyLocator) ([32]byte, error)
func (*MockSigner) MuSig2Cleanup ¶
func (s *MockSigner) MuSig2Cleanup(context.Context, [32]byte) error
MuSig2Cleanup removes a session from memory to free up resources.
func (*MockSigner) MuSig2CombineSig ¶
MuSig2CombineSig combines the given partial signature(s) with the local one, if it already exists. Once a partial signature of all participants is registered, the final signature will be combined and returned.
func (*MockSigner) MuSig2CreateSession ¶
func (s *MockSigner) MuSig2CreateSession(context.Context, input.MuSig2Version, *keychain.KeyLocator, [][]byte, ...lndclient.MuSig2SessionOpts) ( *input.MuSig2SessionInfo, error)
MuSig2CreateSession creates a new MuSig2 signing session using the local key identified by the key locator. The complete list of all public keys of all signing parties must be provided, including the public key of the local signing key. If nonces of other parties are already known, they can be submitted as well to reduce the number of method calls necessary later on.
func (*MockSigner) MuSig2RegisterNonces ¶
MuSig2RegisterNonces registers one or more public nonces of other signing participants for a session identified by its ID. This method returns true once we have all nonces for all other signing participants.
func (*MockSigner) MuSig2Sign ¶
MuSig2Sign creates a partial signature using the local signing key that was specified when the session was created. This can only be called when all public nonces of all participants are known and have been registered with the session. If this node isn't responsible for combining all the partial signatures, then the cleanup parameter should be set, indicating that the session can be removed from memory once the signature was produced.
func (*MockSigner) SignMessage ¶
func (s *MockSigner) SignMessage(_ context.Context, _ []byte, _ keychain.KeyLocator, _ ...lndclient.SignMessageOption) ([]byte, error)
func (*MockSigner) SignOutputRaw ¶
func (*MockSigner) VerifyMessage ¶
func (s *MockSigner) VerifyMessage(_ context.Context, msg, sig []byte, _ [33]byte, opts ...lndclient.VerifyMessageOption) (bool, error)
type MockSignerClient ¶
type MockSignerClient struct {
// contains filtered or unexported fields
}
MockSignerClient is a mock of SignerClient interface.
func NewMockSignerClient ¶
func NewMockSignerClient(ctrl *gomock.Controller) *MockSignerClient
NewMockSignerClient creates a new mock instance.
func (*MockSignerClient) ComputeInputScript ¶
func (m *MockSignerClient) ComputeInputScript(ctx context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor, prevOutputs []*wire.TxOut) ([]*input.Script, error)
ComputeInputScript mocks base method.
func (*MockSignerClient) DeriveSharedKey ¶
func (m *MockSignerClient) DeriveSharedKey(ctx context.Context, ephemeralPubKey *btcec.PublicKey, keyLocator *keychain.KeyLocator) ([32]byte, error)
DeriveSharedKey mocks base method.
func (*MockSignerClient) EXPECT ¶
func (m *MockSignerClient) EXPECT() *MockSignerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSignerClient) MuSig2Cleanup ¶
func (m *MockSignerClient) MuSig2Cleanup(ctx context.Context, sessionID [32]byte) error
MuSig2Cleanup mocks base method.
func (*MockSignerClient) MuSig2CombineSig ¶
func (m *MockSignerClient) MuSig2CombineSig(ctx context.Context, sessionID [32]byte, otherPartialSigs [][]byte) (bool, []byte, error)
MuSig2CombineSig mocks base method.
func (*MockSignerClient) MuSig2CreateSession ¶
func (m *MockSignerClient) MuSig2CreateSession(ctx context.Context, version input.MuSig2Version, signerLoc *keychain.KeyLocator, signers [][]byte, opts ...lndclient.MuSig2SessionOpts) (*input.MuSig2SessionInfo, error)
MuSig2CreateSession mocks base method.
func (*MockSignerClient) MuSig2RegisterNonces ¶
func (m *MockSignerClient) MuSig2RegisterNonces(ctx context.Context, sessionID [32]byte, nonces [][66]byte) (bool, error)
MuSig2RegisterNonces mocks base method.
func (*MockSignerClient) MuSig2Sign ¶
func (m *MockSignerClient) MuSig2Sign(ctx context.Context, sessionID, message [32]byte, cleanup bool) ([]byte, error)
MuSig2Sign mocks base method.
func (*MockSignerClient) SignMessage ¶
func (m *MockSignerClient) SignMessage(ctx context.Context, msg []byte, locator keychain.KeyLocator, opts ...lndclient.SignMessageOption) ([]byte, error)
SignMessage mocks base method.
func (*MockSignerClient) SignOutputRaw ¶
func (m *MockSignerClient) SignOutputRaw(ctx context.Context, tx *wire.MsgTx, signDescriptors []*lndclient.SignDescriptor, prevOutputs []*wire.TxOut) ([][]byte, error)
SignOutputRaw mocks base method.
func (*MockSignerClient) VerifyMessage ¶
func (m *MockSignerClient) VerifyMessage(ctx context.Context, msg, sig []byte, pubkey [33]byte, opts ...lndclient.VerifyMessageOption) (bool, error)
VerifyMessage mocks base method.
type MockSignerClientMockRecorder ¶
type MockSignerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSignerClientMockRecorder is the mock recorder for MockSignerClient.
func (*MockSignerClientMockRecorder) ComputeInputScript ¶
func (mr *MockSignerClientMockRecorder) ComputeInputScript(ctx, tx, signDescriptors, prevOutputs interface{}) *gomock.Call
ComputeInputScript indicates an expected call of ComputeInputScript.
func (*MockSignerClientMockRecorder) DeriveSharedKey ¶
func (mr *MockSignerClientMockRecorder) DeriveSharedKey(ctx, ephemeralPubKey, keyLocator interface{}) *gomock.Call
DeriveSharedKey indicates an expected call of DeriveSharedKey.
func (*MockSignerClientMockRecorder) MuSig2Cleanup ¶
func (mr *MockSignerClientMockRecorder) MuSig2Cleanup(ctx, sessionID interface{}) *gomock.Call
MuSig2Cleanup indicates an expected call of MuSig2Cleanup.
func (*MockSignerClientMockRecorder) MuSig2CombineSig ¶
func (mr *MockSignerClientMockRecorder) MuSig2CombineSig(ctx, sessionID, otherPartialSigs interface{}) *gomock.Call
MuSig2CombineSig indicates an expected call of MuSig2CombineSig.
func (*MockSignerClientMockRecorder) MuSig2CreateSession ¶
func (mr *MockSignerClientMockRecorder) MuSig2CreateSession(ctx, version, signerLoc, signers interface{}, opts ...interface{}) *gomock.Call
MuSig2CreateSession indicates an expected call of MuSig2CreateSession.
func (*MockSignerClientMockRecorder) MuSig2RegisterNonces ¶
func (mr *MockSignerClientMockRecorder) MuSig2RegisterNonces(ctx, sessionID, nonces interface{}) *gomock.Call
MuSig2RegisterNonces indicates an expected call of MuSig2RegisterNonces.
func (*MockSignerClientMockRecorder) MuSig2Sign ¶
func (mr *MockSignerClientMockRecorder) MuSig2Sign(ctx, sessionID, message, cleanup interface{}) *gomock.Call
MuSig2Sign indicates an expected call of MuSig2Sign.
func (*MockSignerClientMockRecorder) SignMessage ¶
func (mr *MockSignerClientMockRecorder) SignMessage(ctx, msg, locator interface{}, opts ...interface{}) *gomock.Call
SignMessage indicates an expected call of SignMessage.
func (*MockSignerClientMockRecorder) SignOutputRaw ¶
func (mr *MockSignerClientMockRecorder) SignOutputRaw(ctx, tx, signDescriptors, prevOutputs interface{}) *gomock.Call
SignOutputRaw indicates an expected call of SignOutputRaw.
func (*MockSignerClientMockRecorder) VerifyMessage ¶
func (mr *MockSignerClientMockRecorder) VerifyMessage(ctx, msg, sig, pubkey interface{}, opts ...interface{}) *gomock.Call
VerifyMessage indicates an expected call of VerifyMessage.
type MockWalletKit ¶
type MockWalletKit struct { TxPublishChannel chan *wire.MsgTx SendOutputsChannel chan wire.MsgTx Transactions []*wire.MsgTx Sweeps []string // contains filtered or unexported fields }
func NewMockWalletKit ¶
func NewMockWalletKit() *MockWalletKit
func (*MockWalletKit) AddTx ¶
func (m *MockWalletKit) AddTx(tx *wire.MsgTx)
AddTx marks the given transaction as relevant.
func (*MockWalletKit) BumpFee ¶
func (m *MockWalletKit) BumpFee(context.Context, wire.OutPoint, chainfee.SatPerKWeight) error
func (*MockWalletKit) DeriveKey ¶
func (m *MockWalletKit) DeriveKey(_ context.Context, in *keychain.KeyLocator) ( *keychain.KeyDescriptor, error)
func (*MockWalletKit) DeriveNextKey ¶
func (m *MockWalletKit) DeriveNextKey(_ context.Context, family int32) ( *keychain.KeyDescriptor, error)
func (*MockWalletKit) EstimateFeeRate ¶
func (m *MockWalletKit) EstimateFeeRate(_ context.Context, confTarget int32) ( chainfee.SatPerKWeight, error)
func (*MockWalletKit) FinalizePsbt ¶
func (m *MockWalletKit) FinalizePsbt(_ context.Context, _ *psbt.Packet, _ string) (*psbt.Packet, *wire.MsgTx, error)
FinalizePsbt expects a partial transaction with all inputs and outputs fully declared and tries to sign all inputs that belong to the wallet. Lnd must be the last signer of the transaction. That means, if there are any unsigned non-witness inputs or inputs without UTXO information attached or inputs without witness data that do not belong to lnd's wallet, this method will fail. If no error is returned, the PSBT is ready to be extracted and the final TX within to be broadcast.
NOTE: This method does NOT publish the transaction once finalized. It is the caller's responsibility to either publish the transaction on success or unlock/release any locked UTXOs in case of an error in this method.
func (*MockWalletKit) FundPsbt ¶
func (m *MockWalletKit) FundPsbt(_ context.Context, _ *walletrpc.FundPsbtRequest) (*psbt.Packet, int32, []*walletrpc.UtxoLease, error)
FundPsbt creates a fully populated PSBT that contains enough inputs to fund the outputs specified in the template. There are two ways of specifying a template: Either by passing in a PSBT with at least one output declared or by passing in a raw TxTemplate message. If there are no inputs specified in the template, coin selection is performed automatically. If the template does contain any inputs, it is assumed that full coin selection happened externally and no additional inputs are added. If the specified inputs aren't enough to fund the outputs with the given fee rate, an error is returned. After either selecting or verifying the inputs, all input UTXOs are locked with an internal app ID.
NOTE: If this method returns without an error, it is the caller's responsibility to either spend the locked UTXOs (by finalizing and then publishing the transaction) or to unlock/release the locked UTXOs in case of an error on the caller's side.
func (*MockWalletKit) ImportPublicKey ¶
func (m *MockWalletKit) ImportPublicKey(ctx context.Context, pubkey *btcec.PublicKey, addrType lnwallet.AddressType) error
ImportPublicKey imports a public key as watch-only into the wallet.
func (*MockWalletKit) ImportTaprootScript ¶
func (m *MockWalletKit) ImportTaprootScript(_ context.Context, _ *waddrmgr.Tapscript) (btcutil.Address, error)
ImportTaprootScript imports a user-provided taproot script into the wallet. The imported script will act as a pay-to-taproot address.
func (*MockWalletKit) LeaseOutput ¶
func (*MockWalletKit) ListAccounts ¶
func (m *MockWalletKit) ListAccounts(context.Context, string, walletrpc.AddressType) ([]*walletrpc.Account, error)
ListAccounts retrieves all accounts belonging to the wallet by default. Optional name and addressType can be provided to filter through all of the wallet accounts and return only those matching.
func (*MockWalletKit) ListLeases ¶
func (m *MockWalletKit) ListLeases( context.Context) ([]lndclient.LeaseDescriptor, error)
func (*MockWalletKit) ListSweeps ¶
func (m *MockWalletKit) ListSweeps(_ context.Context) ([]string, error)
ListSweeps returns a list of the sweep transaction ids known to our node.
func (*MockWalletKit) ListSweepsVerbose ¶
func (m *MockWalletKit) ListSweepsVerbose( _ context.Context) ([]lnwallet.TransactionDetail, error)
func (*MockWalletKit) ListUnspent ¶
func (m *MockWalletKit) ListUnspent(context.Context, int32, int32, ...lndclient.ListUnspentOption) ([]*lnwallet.Utxo, error)
func (*MockWalletKit) NextAddr ¶
func (m *MockWalletKit) NextAddr(context.Context, string, walletrpc.AddressType, bool) (btcutil.Address, error)
func (*MockWalletKit) PublishTransaction ¶
func (*MockWalletKit) ReleaseOutput ¶
func (*MockWalletKit) SendOutputs ¶
func (*MockWalletKit) SignPsbt ¶
SignPsbt expects a partial transaction with all inputs and outputs fully declared and tries to sign all unsigned inputs that have all required fields (UTXO information, BIP32 derivation information, witness or sig scripts) set. If no error is returned, the PSBT is ready to be given to the next signer or to be finalized if lnd was the last signer.
NOTE: This RPC only signs inputs (and only those it can sign), it does not perform any other tasks (such as coin selection, UTXO locking or input/output/fee value validation, PSBT finalization). Any input that is incomplete will be skipped.
type MockWalletKitClient ¶
type MockWalletKitClient struct {
// contains filtered or unexported fields
}
MockWalletKitClient is a mock of WalletKitClient interface.
func NewMockWalletKitClient ¶
func NewMockWalletKitClient(ctrl *gomock.Controller) *MockWalletKitClient
NewMockWalletKitClient creates a new mock instance.
func (*MockWalletKitClient) BumpFee ¶
func (m *MockWalletKitClient) BumpFee(arg0 context.Context, arg1 wire.OutPoint, arg2 chainfee.SatPerKWeight) error
BumpFee mocks base method.
func (*MockWalletKitClient) DeriveKey ¶
func (m *MockWalletKitClient) DeriveKey(ctx context.Context, locator *keychain.KeyLocator) (*keychain.KeyDescriptor, error)
DeriveKey mocks base method.
func (*MockWalletKitClient) DeriveNextKey ¶
func (m *MockWalletKitClient) DeriveNextKey(ctx context.Context, family int32) (*keychain.KeyDescriptor, error)
DeriveNextKey mocks base method.
func (*MockWalletKitClient) EXPECT ¶
func (m *MockWalletKitClient) EXPECT() *MockWalletKitClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWalletKitClient) EstimateFeeRate ¶
func (m *MockWalletKitClient) EstimateFeeRate(ctx context.Context, confTarget int32) (chainfee.SatPerKWeight, error)
EstimateFeeRate mocks base method.
func (*MockWalletKitClient) FinalizePsbt ¶
func (m *MockWalletKitClient) FinalizePsbt(ctx context.Context, packet *psbt.Packet, account string) (*psbt.Packet, *wire.MsgTx, error)
FinalizePsbt mocks base method.
func (*MockWalletKitClient) FundPsbt ¶
func (m *MockWalletKitClient) FundPsbt(ctx context.Context, req *walletrpc.FundPsbtRequest) (*psbt.Packet, int32, []*walletrpc.UtxoLease, error)
FundPsbt mocks base method.
func (*MockWalletKitClient) ImportPublicKey ¶
func (m *MockWalletKitClient) ImportPublicKey(ctx context.Context, pubkey *btcec.PublicKey, addrType lnwallet.AddressType) error
ImportPublicKey mocks base method.
func (*MockWalletKitClient) ImportTaprootScript ¶
func (m *MockWalletKitClient) ImportTaprootScript(ctx context.Context, tapscript *waddrmgr.Tapscript) (btcutil.Address, error)
ImportTaprootScript mocks base method.
func (*MockWalletKitClient) LeaseOutput ¶
func (m *MockWalletKitClient) LeaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint, leaseTime time.Duration) (time.Time, error)
LeaseOutput mocks base method.
func (*MockWalletKitClient) ListAccounts ¶
func (m *MockWalletKitClient) ListAccounts(ctx context.Context, name string, addressType walletrpc.AddressType) ([]*walletrpc.Account, error)
ListAccounts mocks base method.
func (*MockWalletKitClient) ListLeases ¶
func (m *MockWalletKitClient) ListLeases(ctx context.Context) ([]lndclient.LeaseDescriptor, error)
ListLeases mocks base method.
func (*MockWalletKitClient) ListSweeps ¶
func (m *MockWalletKitClient) ListSweeps(ctx context.Context) ([]string, error)
ListSweeps mocks base method.
func (*MockWalletKitClient) ListSweepsVerbose ¶
func (m *MockWalletKitClient) ListSweepsVerbose(ctx context.Context) ([]lnwallet.TransactionDetail, error)
ListSweepsVerbose mocks base method.
func (*MockWalletKitClient) ListUnspent ¶
func (m *MockWalletKitClient) ListUnspent(ctx context.Context, minConfs, maxConfs int32, opts ...lndclient.ListUnspentOption) ([]*lnwallet.Utxo, error)
ListUnspent mocks base method.
func (*MockWalletKitClient) NextAddr ¶
func (m *MockWalletKitClient) NextAddr(ctx context.Context, accountName string, addressType walletrpc.AddressType, change bool) (btcutil.Address, error)
NextAddr mocks base method.
func (*MockWalletKitClient) PublishTransaction ¶
func (m *MockWalletKitClient) PublishTransaction(ctx context.Context, tx *wire.MsgTx, label string) error
PublishTransaction mocks base method.
func (*MockWalletKitClient) ReleaseOutput ¶
func (m *MockWalletKitClient) ReleaseOutput(ctx context.Context, lockID wtxmgr.LockID, op wire.OutPoint) error
ReleaseOutput mocks base method.
func (*MockWalletKitClient) SendOutputs ¶
func (m *MockWalletKitClient) SendOutputs(ctx context.Context, outputs []*wire.TxOut, feeRate chainfee.SatPerKWeight, label string) (*wire.MsgTx, error)
SendOutputs mocks base method.
type MockWalletKitClientMockRecorder ¶
type MockWalletKitClientMockRecorder struct {
// contains filtered or unexported fields
}
MockWalletKitClientMockRecorder is the mock recorder for MockWalletKitClient.
func (*MockWalletKitClientMockRecorder) BumpFee ¶
func (mr *MockWalletKitClientMockRecorder) BumpFee(arg0, arg1, arg2 interface{}) *gomock.Call
BumpFee indicates an expected call of BumpFee.
func (*MockWalletKitClientMockRecorder) DeriveKey ¶
func (mr *MockWalletKitClientMockRecorder) DeriveKey(ctx, locator interface{}) *gomock.Call
DeriveKey indicates an expected call of DeriveKey.
func (*MockWalletKitClientMockRecorder) DeriveNextKey ¶
func (mr *MockWalletKitClientMockRecorder) DeriveNextKey(ctx, family interface{}) *gomock.Call
DeriveNextKey indicates an expected call of DeriveNextKey.
func (*MockWalletKitClientMockRecorder) EstimateFeeRate ¶
func (mr *MockWalletKitClientMockRecorder) EstimateFeeRate(ctx, confTarget interface{}) *gomock.Call
EstimateFeeRate indicates an expected call of EstimateFeeRate.
func (*MockWalletKitClientMockRecorder) FinalizePsbt ¶
func (mr *MockWalletKitClientMockRecorder) FinalizePsbt(ctx, packet, account interface{}) *gomock.Call
FinalizePsbt indicates an expected call of FinalizePsbt.
func (*MockWalletKitClientMockRecorder) FundPsbt ¶
func (mr *MockWalletKitClientMockRecorder) FundPsbt(ctx, req interface{}) *gomock.Call
FundPsbt indicates an expected call of FundPsbt.
func (*MockWalletKitClientMockRecorder) ImportPublicKey ¶
func (mr *MockWalletKitClientMockRecorder) ImportPublicKey(ctx, pubkey, addrType interface{}) *gomock.Call
ImportPublicKey indicates an expected call of ImportPublicKey.
func (*MockWalletKitClientMockRecorder) ImportTaprootScript ¶
func (mr *MockWalletKitClientMockRecorder) ImportTaprootScript(ctx, tapscript interface{}) *gomock.Call
ImportTaprootScript indicates an expected call of ImportTaprootScript.
func (*MockWalletKitClientMockRecorder) LeaseOutput ¶
func (mr *MockWalletKitClientMockRecorder) LeaseOutput(ctx, lockID, op, leaseTime interface{}) *gomock.Call
LeaseOutput indicates an expected call of LeaseOutput.
func (*MockWalletKitClientMockRecorder) ListAccounts ¶
func (mr *MockWalletKitClientMockRecorder) ListAccounts(ctx, name, addressType interface{}) *gomock.Call
ListAccounts indicates an expected call of ListAccounts.
func (*MockWalletKitClientMockRecorder) ListLeases ¶
func (mr *MockWalletKitClientMockRecorder) ListLeases(ctx interface{}) *gomock.Call
ListLeases indicates an expected call of ListLeases.
func (*MockWalletKitClientMockRecorder) ListSweeps ¶
func (mr *MockWalletKitClientMockRecorder) ListSweeps(ctx interface{}) *gomock.Call
ListSweeps indicates an expected call of ListSweeps.
func (*MockWalletKitClientMockRecorder) ListSweepsVerbose ¶
func (mr *MockWalletKitClientMockRecorder) ListSweepsVerbose(ctx interface{}) *gomock.Call
ListSweepsVerbose indicates an expected call of ListSweepsVerbose.
func (*MockWalletKitClientMockRecorder) ListUnspent ¶
func (mr *MockWalletKitClientMockRecorder) ListUnspent(ctx, minConfs, maxConfs interface{}, opts ...interface{}) *gomock.Call
ListUnspent indicates an expected call of ListUnspent.
func (*MockWalletKitClientMockRecorder) NextAddr ¶
func (mr *MockWalletKitClientMockRecorder) NextAddr(ctx, accountName, addressType, change interface{}) *gomock.Call
NextAddr indicates an expected call of NextAddr.
func (*MockWalletKitClientMockRecorder) PublishTransaction ¶
func (mr *MockWalletKitClientMockRecorder) PublishTransaction(ctx, tx, label interface{}) *gomock.Call
PublishTransaction indicates an expected call of PublishTransaction.
func (*MockWalletKitClientMockRecorder) ReleaseOutput ¶
func (mr *MockWalletKitClientMockRecorder) ReleaseOutput(ctx, lockID, op interface{}) *gomock.Call
ReleaseOutput indicates an expected call of ReleaseOutput.
func (*MockWalletKitClientMockRecorder) SendOutputs ¶
func (mr *MockWalletKitClientMockRecorder) SendOutputs(ctx, outputs, feeRate, label interface{}) *gomock.Call
SendOutputs indicates an expected call of SendOutputs.
func (*MockWalletKitClientMockRecorder) SignPsbt ¶
func (mr *MockWalletKitClientMockRecorder) SignPsbt(ctx, packet interface{}) *gomock.Call
SignPsbt indicates an expected call of SignPsbt.
type PaymentChannelMessage ¶
type PaymentChannelMessage struct { PaymentRequest string Done chan lndclient.PaymentResult }
PaymentChannelMessage is the data that passed through SendPaymentChannel.
type ScbKeyRing ¶
type ScbKeyRing struct {
EncryptionKey keychain.KeyDescriptor
}
func (*ScbKeyRing) DeriveKey ¶
func (k *ScbKeyRing) DeriveKey( keychain.KeyLocator) (keychain.KeyDescriptor, error)
func (*ScbKeyRing) DeriveNextKey ¶
func (k *ScbKeyRing) DeriveNextKey( keychain.KeyFamily) (keychain.KeyDescriptor, error)
type SignOutputRawRequest ¶
type SignOutputRawRequest struct { Tx *wire.MsgTx SignDescriptors []*lndclient.SignDescriptor }
SignOutputRawRequest contains input data for a tx signing request.
type SignerClient ¶
type SignerClient interface { lndclient.SignerClient }
type WalletKitClient ¶
type WalletKitClient interface { lndclient.WalletKitClient }