Sjors / bitcoin

Bitcoin Core integration/staging tree
https://bitcoin.org/en/download
MIT License
6 stars 10 forks source link

Increment nonce after encrypt / decrypt #33

Closed Sjors closed 8 months ago

Sjors commented 8 months ago

Counterpart to https://github.com/stratum-mining/stratum/pull/729

Sjors commented 8 months ago

Also added a check for the maximum nonce value of 2^^64 - 1 as chapter 5.1 of the Noise paper requires, though that's not in the spec. @jakubtrnka thoughts?

(only a fuzzer would encounter that limit in practice)