lib secp256k1.cr v0.2.1
this release significantly improves the documentation at https://q9f.github.io/secp256k1.cr/ and applies some minor enhancements to the exposed apis of the library, namely:
- mini-private keys now use BASE-56 instead of BASE-57. that does not affect existing mini-private keys.
- added
Secp256k1::Bitcoin.wif_from_private_uncompressedwrapper for uncompressed wif - renamed
Secp256k1::Bitcoin.wif_compressed_from_privateto.wif_from_private_compressed - private keys are handled as
BigIntinstead of aStringliterals wherever possible, e.g.,Secp256k1::Bitcoin.address_from_privateorSecp256k1::Ethereum.address_from_private - constants: renamed
EC_PARAM_PRIMEtoEC_PRIME_P - replaced
BASE_57in favor ofBASE_56by removing theofrom the alphabet as recommended by the Bitcoin Wiki. - binary hashing operations now directly operate on
Bytesinstead ofStringliterals, e.g.,Secp256k1::Hash.sha3,.sha256,.keccak256,.ripemd160 - added
Secp256k1::Hash.ripemd160_stringfor RIPEMD-160 hashes onStringliterals to complement.sha3_string,.sha256_string, and.keccak256_string - added
Secp256k1::Hash.base58_charto complement.base56_char - pass the
primethroughSecp256k1::Util.restore_public_key
changes:
- improve the documentation #27