paulmillr / noble-secp256k1

Fastest 4KB JS implementation of secp256k1 signatures and ECDH
https://paulmillr.com/noble
MIT License
757 stars 114 forks source link

Feature/entropy 32 bytes #62

Closed BatiGencho closed 2 years ago

BatiGencho commented 2 years ago

We need one functionality to be extended for our case where we do not have FIPS 186 and need 32 bytes of private key. Can we probably have another not FIPS186 - related hashToPrivateKeyCustom or so function to capture this desired effect. We have been using the fork at the moment, but it would be great if you would approve such a change or eventually relaxing this limit of 40-1-24 bytes limit. Thanks a lot.

paulmillr commented 2 years ago

Absolutely not, this will introduce modulo bias, which is a security issue. If you'd like such an implementation, you're free to do this in your code.