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

Update forward secrecy nonce creation counter #60

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Sep 5, 2024

Using 64 bit counter to match the official BIP324 spec. The reference implementation uses a u32 so this probably isn't a big deal, but figure better safe than sorry here.

* Using 64 bit counter to match the official BIP324 spec.
@rustaceanrob
Copy link
Collaborator

ACK 618739a

More can be done in this area. I just looked at Bitcoin Core and they actually use two counters, one for the current amount of packets in this interval, and one for the global rekey counter. Here is the header file and the logic

@rustaceanrob rustaceanrob merged commit 35f837d into rust-bitcoin:main Sep 5, 2024
7 checks passed
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