3 ms·
I’m loving the well commented and standalone inplementations of crypto-primatives, will definitely be studying these. One question, in src/crypto/rand.c:25 you
by jazzyjackson 5y ago
I’m loving the well commented and standalone inplementations of crypto-primatives, will definitely be studying these.
One question, in src/crypto/rand.c:25 you have a standalone RNG but comments say it is not used internally? what is it used for?
- chjj 5y agoMost of the crypto is from my more general crypto library libtorsion: https://github.com/bcoin-org/libtorsion https://github.com/bcoin-org/libtorsion I originally wanted to vendor my libtorsion code and link to it, but it felt clunky since libtorsion pulls in a ton of crypto that bitcoin doesn't need. Also, since I was focusing on just a few algorithms, it gave me the opportunity to optimize a lot of them (in particular, the ECC backend was optimized for secp256k1 whereas in libtorsion it supports all kinds of curves). Because of all of this, there's probably some leftover comments. That comment isn't true anymore. rand.c is definitely used internally for libmako, just not libtorsion. edit: fixed link.