Versions in this module Expand all Collapse all v1 v1.1.3 Sep 20, 2021 v1.1.2 Sep 20, 2021 Changes in this version + func CreateKey(index int32) (*btcec.PrivateKey, *btcec.PublicKey) + type MockLightning struct + ChainParams *chaincfg.Params + Channels []lndclient.ChannelInfo + ChannelsClosed []lndclient.ClosedChannel + ChannelsPending []lndclient.PendingChannel + ForwardingEvents []lndclient.ForwardingEvent + Invoices map[lntypes.Hash]*lndclient.Invoice + NodePubkey string + Payments []lndclient.Payment + ScbKeyRing *ScbKeyRing + SendPaymentChannel chan PaymentChannelMessage + Sweeps []string + Transactions []lndclient.Transaction + func NewMockLightning() *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) ([]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, int32) ([]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 struct + Height int32 + NodePubkey string + SignOutputRawChannel chan SignOutputRawRequest + Signature []byte + SignatureMsg string + func NewMockSigner() *MockSigner + func (s *MockSigner) ComputeInputScript(context.Context, *wire.MsgTx, []*lndclient.SignDescriptor) ([]*input.Script, error) + func (s *MockSigner) DeriveSharedKey(context.Context, *btcec.PublicKey, *keychain.KeyLocator) ([32]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 MockWalletKit struct + SendOutputsChannel chan wire.MsgTx + Sweeps []string + Transactions []*wire.MsgTx + TxPublishChannel chan *wire.MsgTx + func NewMockWalletKit() *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) EstimateFee(_ context.Context, confTarget int32) (chainfee.SatPerKWeight, error) + func (m *MockWalletKit) LeaseOutput(context.Context, wtxmgr.LockID, wire.OutPoint, time.Duration) (time.Time, error) + func (m *MockWalletKit) ListSweeps(_ context.Context) ([]string, error) + func (m *MockWalletKit) ListUnspent(context.Context, int32, int32) ([]*lnwallet.Utxo, error) + func (m *MockWalletKit) NextAddr(context.Context) (btcutil.Address, error) + func (m *MockWalletKit) PublishTransaction(_ context.Context, tx *wire.MsgTx, label 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) + type PaymentChannelMessage struct + Done chan lndclient.PaymentResult + PaymentRequest string + type ScbKeyRing struct + EncryptionKey keychain.KeyDescriptor + func (k *ScbKeyRing) DeriveKey(keychain.KeyLocator) (keychain.KeyDescriptor, error) + func (k *ScbKeyRing) DeriveNextKey(keychain.KeyFamily) (keychain.KeyDescriptor, error) + type SignOutputRawRequest struct + SignDescriptors []*lndclient.SignDescriptor + Tx *wire.MsgTx