2

In the source code of Bitcoin Core there are these functions but no explanation of how and where they are used. I need to make a description for all crypto-functions used in Bitcoin Core (https://github.com/bitcoin/bitcoin/tree/master/src/crypto) but it's difficult to find information, so asking you here.

1 Answer 1

4

You can open the git history for each file and see when and why they were added.

chacha20.cpp was added in PR #9792, apparently to improve Bitcoin Core's random number generator. chacha_poly_aead.cpp was added in PR #15649 as a preliminary step for implementing BIP324 (the P2P encrypted transport protocol).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.