Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bolt-simple-taproot: make funding symmetric, add new type for shutdown #5

Merged
merged 10 commits into from
Jan 25, 2023

Conversation

Roasbeef
Copy link
Owner

In this commit, we build off the prior JIT nonce proposal modifying the
following:

  • The funding flow returns to being symmetric. Both open_channel and
    accept_channel carry nonces.

  • The shutdown message once again transmit a nonce that'll be used
    by both sides to sign the shutdown transaction. A symmetric nonce
    approach is used here as both sides already know what the other will
    use for their nonce, and there's only a single message to sign.

  • The closing_signed message now only carries a 32-byte
    partial_sig value, as the nonces has already been transmitted
    ahead of time. Additionally, the existing "negotiation" feature has
    been done away with. Cooperative close will now always succeed after
    a single round, as the initiator is the only that ultimately pays
    fees.

arik-so and others added 10 commits November 10, 2022 18:12
In this commit, we build off the prior JIT nonce proposal modifying the
following:

  * The funding flow returns to being symmetric. Both `open_channel` and
    `accept_channel` carry nonces.

  * The `shutdown` message once again transmit a nonce that'll be used
    by both sides to sign the shutdown transaction. A symmetric nonce
    approach is used here as both sides already know what the other will
    use for their nonce, and there's only a single message to sign.

  * The `closing_signed` message now only carries a 32-byte
    `partial_sig` value, as the nonces has already been transmitted
    ahead of time. Additionally, the existing "negotiation" feature has
    been done away with. Cooperative close will now always succeed after
    a single round, as the initiator is the only that ultimately pays
    fees.
@Roasbeef
Copy link
Owner Author

Landing this so we can continue to iterate in future PRs and also sync up with the main BOLT PR.

@Roasbeef Roasbeef merged commit d89c743 into simple-taproot-chans Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants