etscrivner / rbsecp256k1

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

Make PrivateKey#data method instead of attribute #72

Closed etscrivner closed 1 year ago

etscrivner commented 1 year ago

Make PrivateKey#data a method instead of an attribute to prevent private key binary data from being printed in console sessions. Update the documentation appropriately.

Attempt to clear the private key secret memory on free for a small amount of added security.