lnd/lnwallet
Yong 7f56541dc9
Some checks failed
CI / Static Checks (push) Waiting to run
CI / Check commits (push) Waiting to run
CI / Lint code (push) Waiting to run
CI / Cross compilation (push) Waiting to run
CI / Cross compilation-1 (push) Waiting to run
CI / Cross compilation-2 (push) Waiting to run
CI / Run unit tests (push) Waiting to run
CI / Run unit tests-1 (push) Waiting to run
CI / Run unit tests-2 (push) Waiting to run
CI / Run unit tests-3 (push) Waiting to run
CI / Run unit tests-4 (push) Waiting to run
CI / Run unit tests-5 (push) Waiting to run
CI / Run unit tests-6 (push) Waiting to run
CI / Run unit tests-7 (push) Waiting to run
CI / Run unit tests-8 (push) Waiting to run
CI / Run unit tests-9 (push) Waiting to run
CI / Run basic itests (push) Waiting to run
CI / Run basic itests-1 (push) Waiting to run
CI / Run basic itests-2 (push) Waiting to run
CI / Run basic itests-3 (push) Waiting to run
CI / Run basic itests-4 (push) Waiting to run
CI / Run itests (push) Waiting to run
CI / Run itests-1 (push) Waiting to run
CI / Run itests-2 (push) Waiting to run
CI / Run itests-3 (push) Waiting to run
CI / Run itests-4 (push) Waiting to run
CI / Run itests-5 (push) Waiting to run
CI / Run itests-6 (push) Waiting to run
CI / Run itests-7 (push) Waiting to run
CI / Run windows itest (push) Waiting to run
CI / Run macOS itest (push) Waiting to run
CI / Check pinned dependencies (push) Waiting to run
CI / Check pinned dependencies-1 (push) Waiting to run
CI / Check release notes updated (push) Waiting to run
CI / Backwards compatibility test (push) Waiting to run
CI / Cache Cleanup (push) Waiting to run
CI / Send coverage report (push) Blocked by required conditions
Vulnerability scan / Scan release binaries (push) Has been cancelled
Merge pull request #11023 from ellemouton/update-fee-log
lnwallet+htlcswitch: align update_fee handling with BOLT 2
2026-08-07 12:30:57 +08:00
..
btcwallet lnwallet+walletrpc: add SubmitPackage for v3 CPFP package relay 2026-06-30 11:07:52 -07:00
chainfee multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
chancloser lnwallet/chancloser: record the remote close output only when accepted 2026-08-05 12:22:56 -07:00
chanfunding multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
chanvalidate multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
rpcwallet multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
test multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
types multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
aux_leaf_store.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
aux_negotiator.go lnwallet: introduce AuxChannelNegotiator interface 2025-09-23 19:02:57 +02:00
aux_resolutions.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
aux_signer.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
aux_test_utils.go lnwallet: add aux test utils 2026-03-04 20:19:43 +01:00
channel.go lnwallet: coalesce uncommitted fee updates 2026-08-04 16:15:10 -07:00
channel_revoke_nonces_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
channel_test.go lnwallet: coalesce uncommitted fee updates 2026-08-04 16:15:10 -07:00
close_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
commit_sort.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
commit_sort_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
commitment.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
commitment_chain.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
config.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
confscale.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
confscale_integration.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
confscale_prod.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
confscale_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
errors.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
interface.go lnwallet+walletrpc: add SubmitPackage for v3 CPFP package relay 2026-06-30 11:07:52 -07:00
log.go lnwallet: move btcwallet log under BTWL 2025-03-21 08:06:18 +08:00
mock.go lnwallet+walletrpc: add SubmitPackage for v3 CPFP package relay 2026-06-30 11:07:52 -07:00
musig_session.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
musig_session_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
parameters.go lnwallet: make DustLimitForSize total over the sizes it can be handed 2026-08-05 12:22:56 -07:00
parameters_test.go lnwallet: make DustLimitForSize total over the sizes it can be handed 2026-08-05 12:22:56 -07:00
payment_descriptor.go lnwallet: detect and handle noop HTLCs 2025-08-08 20:03:30 +02:00
README.md scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
rebroadcaster.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
rebroadcaster_test.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
reservation.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
revocation_producer.go input: ensure sessionOpts is properly threaded through 2023-08-22 16:31:47 -07:00
revocation_producer_itest.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
sigpool.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
taproot_test_vectors_test.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
test_utils.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
test_vectors_anchors.json lnwallet: add same amount and preimage anchors test vector 2023-03-16 17:27:05 +02:00
test_vectors_legacy.json lnwallet: add same amount and preimage legacy test vector 2023-03-16 17:27:04 +02:00
test_vectors_taproot.json lnwallet: regenerate test vectors with BIP-340 HTLC signatures 2026-04-13 12:21:42 -07:00
test_vectors_zero_fee_htlc_tx.json lnwallet: add zero-fee-htlc-tx test vectors 2023-03-16 17:27:05 +02:00
transactions.go multi: upgrade to btcd v2 modules 2026-06-24 10:58:36 -07:00
transactions_test.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
update_log.go lnwallet: coalesce uncommitted fee updates 2026-08-04 16:15:10 -07:00
update_log_test.go lnwallet: coalesce uncommitted fee updates 2026-08-04 16:15:10 -07:00
wallet.go lnwallet: use channel state open channel 2026-07-07 07:18:59 -03:00
wallet_test.go funding: remove dead code and sanity check pending chan ID (#7887) 2023-10-09 10:58:18 +02:00

lnwallet

Build Status MIT licensed GoDoc

The lnwallet package implements an abstracted wallet controller that is able to drive channel funding workflows, a number of script utilities, witness generation functions for the various Lightning scripts, revocation key derivation, and the commitment update state machine.

The package is used within lnd as the core wallet of the daemon. The wallet itself is composed of several distinct interfaces that decouple the implementation of things like signing and blockchain access. This separation allows new WalletController implementations to be easily dropped into lnd without disrupting the code base. A series of integration tests at the interface level are also in place to ensure conformance of the implementation with the interface.

Installation and Updating

$  go get -u github.com/lightningnetwork/lnd/lnwallet