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 8: make it clear that there are *two* chaining keys. #1079

Merged

Commits on May 12, 2023

  1. BOLT 8: make it clear that there are *two* chaining keys.

    lnmessage got this wrong!  It would pass our test vectors, but actually fail
    in real usage, since it used the same `ck`.
    
    Also, nonce rotation happens after 1000 encryptions, which is when the nonce
    reaches 1000 (since it's zero based!), not when it *exceeds* 1000.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed May 12, 2023
    Configuration menu
    Copy the full SHA
    e485c4d View commit details
    Browse the repository at this point in the history