Skip to content

Commit

Permalink
lnwallet: add new structs to abstract over the asymmetric musig commi…
Browse files Browse the repository at this point in the history
…tment state

In this commit, we add a series of abstractions that'll allow us to
easily do funding and also state updates for the new taproot channels. A
partial session is defined by the knowledge of a verification nonce.
Once the remote party sends a signature, we learn of their signing
nonce, and can then complete a session. By using a JIT nonce approach,
we ensure that the signer can generate their nonces randomly and also
at the very last step to avoid having to maintain state.

For our local nonces, we also have an option to use a counter based
nonce derived from the shachain instead of fully random nonces. This
allows us to not have to store ay additional state. Instead, when we
need to go to broadcast, we can just regenerate the nonce then use that
to broadcast.
  • Loading branch information
Roasbeef committed May 12, 2023
1 parent d386888 commit 6fc2387
Showing 1 changed file with 535 additions and 0 deletions.

0 comments on commit 6fc2387

Please sign in to comment.