lnd/peer
Olaoluwa Osuntokun 08c42b19da multi: add custom nonce rand support to MuSig2 sessions
In this commit, we add the ability to inject a custom random source
for generating JIT (Just-In-Time) signing nonces in MuSig2 sessions.
By default, MuSig2 signing nonces are generated using crypto/rand,
which makes signatures non-deterministic across runs. For test vector
generation, we need fully reproducible signatures from a fixed seed.

A new `customNonceRand` field is threaded through `MusigSession`,
`MusigSessionCfg`, `MusigPairSession`, and exposed via the
`WithCustomSigningRand` channel option. When set, the custom reader
is passed to `musig2.WithCustomRand()` during JIT nonce generation
in `SignCommit`. All existing callers pass `fn.None[io.Reader]()` to
preserve the current behavior of using the system CSPRNG.
2026-04-13 12:21:42 -07:00
..
brontide.go cmd/commands: add taproot-final to lncli open command 2026-04-13 12:21:42 -07:00
brontide_test.go peer: include ping pong-size in debug summaries 2026-03-26 18:55:13 +08:00
chan_observer.go peer: fix MarkCoopBroadcasted to correctly use local parameter 2026-02-02 12:16:29 +01:00
daemon_adapters.go peer: conditionally create rbf coop close fsm based on feature bits 2025-03-18 11:44:20 -05:00
interfaces.go peer+lnwire: move LinkUpdater to lnwire 2024-03-06 11:59:19 -08:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
musig_chan_closer.go multi: add custom nonce rand support to MuSig2 sessions 2026-04-13 12:21:42 -07:00
musig_nonce_order_test.go lnwallet/chancloser: address lint and PR review feedback 2026-03-27 14:04:25 -07:00
ping_manager.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
ping_manager_test.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
setup_test.go multi: use MakeTestGraph everywhere for test graph creation 2025-05-22 14:14:42 +02:00
test_utils.go peer: add mock BestBlockView to test peer config 2026-03-24 11:49:48 +02:00