v1.3.0 release
This release includes the following changes:
- Add
Bitcoin::PSBT::Tx#to_h
method to output each PSBT data in Hash format. - Add
decodepsbt
option inbitcoinrb-cli
to decode Base64-format PSBT into JSON format. - Return address of
Bitcoin::Script#to_h
changed to return a single address. - Add BIP-322 message signing.
- Elliptic curve operations changed to be performed in Jacobian coordinates using ecdsa_ext gem and bip-schnorr gem v 0.5.0.
- Add private key length check in
Bitcoin::Key#new
.
An incorrect public key was derived if a private key was specified with dropped digits that were not exactly 32 bytes and libsecp256k1 was used. This check ensures that an exception is thrown in such cases. The following code, which could also cause such cases, has been corrected:Bitcion::ExtPubkey#derive
Bitcion::Taproot#tweak_private_key
Full Changelog: v1.2.1...v1.3.0