Skip to content

Releases: peercoin/coinlib

v4.1.0

16 May 19:00
Compare
Choose a tag to compare

CoinSelection now works for TaprootKeyInput and TaprootSingleScriptSigInput.

defaultSigHash may be used with InputCandidate to give an optimal fee for Taproot inputs signed with the default sighash.

v4.0.0

09 Apr 14:10
Compare
Choose a tag to compare
  • The TaprootKeyInput will now write an empty witness stack element to represent a missing signature. These inputs without a signature will be recognised when matching an input or reading a transaction.
  • TaprootSingleScriptSigInput.anyPrevOutAnyScript() has been removed. All TaprootSingleScriptSigInput inputs now require the Taproot and TapLeafChecksig.
  • Fixes Windows build sometimes hanging

v3.1.0

27 Mar 15:01
Compare
Choose a tag to compare
  • Add .r and .s getters to SchnorrSignature with a new .fromRS constructor. The underlying bytes for a BIP340 signature can be obtained via .r.x and .s.data.
  • Add .xhex convenience getter for ECPublicKey.

v3.0.0

08 Mar 16:43
Compare
Choose a tag to compare

This release adds support for ANYPREVOUT and ANYPREVOUTANYSCRIPT. There have been numerous breaking changes.

  • Refactored SigHashType to use OutputSigHashOption and InputSigHashOption. Adds ANYPREVOUT and ANYPREVOUTANYSCRIPT.
  • Add TapLeafChecksig for single signature checksig tapscripts
  • Add TaprootSingleScriptSigInput to sign tapscripts using TapLeafChecksig. Can sign using ANYPREVOUT and ANYPREVOUTANYSCRIPT.
  • Replaced sign() with signLegacy(), signLegacyWitness(), signTaproot() and signTaprootSingleScriptSig().
  • Added SignDetails with numerous subclasses for providing signing details for inputs. SignatureHasher subclasses and Input sign methods refactored accordingly.
  • Taproot signatures are made using SIGHASH_DEFAULT by default.

v2.2.0

31 Aug 13:06
Compare
Choose a tag to compare

Add ECCompressedPublicKey class that forces compressed public keys.

v2.0.0

22 Mar 13:08
Compare
Choose a tag to compare

Final version 2.0.0 for coinlib and coinlib_flutter.

  • Add support for Taproot with the Taproot class, Taproot addresses with P2TRAddress, a P2TR program and inputs with TaprootKeyInput and TaprootScriptInput.
  • Adds support for Windows.
  • Adds CoinSelection class with coin selection algorithms.
  • Substantially reduce size of Javascript for web target.
  • New CoinUnit class handles strings for coin amounts.
  • Various other breaking changes and improvements. Please see the full coinlib/CHANGELOG.md.

v1.0.0

19 Sep 13:50
Compare
Choose a tag to compare

Initial release of coinlib and coinlib_flutter packages supporting Web, Linux, macOS, iOS and Android.