etscrivner / rbsecp256k1

Compiled Ruby wrapper around libsecp256k1 for secp256k1 ECDSA.
The Unlicense
19 stars 13 forks source link

Allow users to provide randomness at context initialization #40

Closed etscrivner closed 5 years ago

etscrivner commented 5 years ago

Currently, we always randomize the secp256k1_context object using SecureRandom. Instead, we should allow users to optionally provide randomness or opt out of randomization altogether. This is especially useful for platforms that may not have high-quality randomness sources and where it needs to be user supplied or skipped altogether.