coinlib 4.0.0
coinlib: ^4.0.0 copied to clipboard
A straight-forward, modular library for Peercoin and other Satoshi-based UTXO blockchains
4.0.0 #
- 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. AllTaprootSingleScriptSigInput
inputs now require theTaproot
andTapLeafChecksig
.- Fixes Windows build sometimes hanging
3.1.0 #
- Add
.r
and.s
getters toSchnorrSignature
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 forECPublicKey
.
3.0.1 #
Fix SchnorrInputSignature
not using SIGHASH_DEFAULT.
3.0.0 #
This release adds support for ANYPREVOUT and ANYPREVOUTANYSCRIPT. There have been numerous breaking changes.
- Refactored
SigHashType
to useOutputSigHashOption
andInputSigHashOption
. Adds ANYPREVOUT and ANYPREVOUTANYSCRIPT. - Add
TapLeafChecksig
for single signature checksig tapscripts - Add
TaprootSingleScriptSigInput
to sign tapscripts usingTapLeafChecksig
. Can sign using ANYPREVOUT and ANYPREVOUTANYSCRIPT. - Replaced
sign()
withsignLegacy()
,signLegacyWitness()
,signTaproot()
andsignTaprootSingleScriptSig()
. - Added
SignDetails
with numerous subclasses for providing signing details for inputs.SignatureHasher
subclasses andInput
sign methods refactored accordingly. - Taproot signatures are made using SIGHASH_DEFAULT by default.
2.2.0 #
Add ECCompressedPublicKey
class that forces compressed public keys.
2.1.0 #
Final release for 2.1.0
2.1.0-rc.1 #
- Add
diffieHellman
method toECPrivateKey
to allow generation of ECDH shared keys between two EC keys. - Update secp256k1 to 0.5.0
2.0.0 #
Final release for 2.0.0
2.0.0-rc.10 #
Fixes documentation links and improves usage of bytesEqual
.
2.0.0-rc.9 #
- Update secp256k1 to 0.4.1
- Update dart dependencies and FFI bindings
2.0.0-rc.8 #
Add windows build support
2.0.0-rc.7 #
- Add
CoinUnit
class to convert between amount strings and satoshis. - Change
NetworkParams
toNetwork
.
2.0.0-rc.6 #
P2WSHAddress.fromScript
is nowP2WSHAddress.fromRedeemScript
andP2WSHAddress.fromScript
is nowP2WSHAddress.fromWitnessScript
to remove ambiguity.P2WSH.fromRedeemScript
is nowP2WSH.fromWitnessScript
in accordance with usual naming for P2WSH.- Added
MultisigProgram.sorted
to allow multisig programs with ordered public keys.
2.0.0-rc.5 #
Reduce output size of JavaScript by encoding WASM as base64
2.0.0-rc.4 #
Fixed issues with build scripts
2.0.0-rc.3 #
Move secp256k1 code to secp256k1 directory
2.0.0-rc.2 #
Adds CoinSelection
class with coin selection algorithms.
2.0.0-rc.1 #
- Add Taproot support for key-path spends and script-path spends.
- Taproot keys and MAST trees are provided with the
Taproot
class. P2TRAddress
support for Taproot addresses.P2TR
provides Taproot program support for outputs.TaprootKeyInput
andTaprootScriptInput
provide Taproot input support.NUMSPublicKey
allows key-path spending to be omitted.- Signing logic has been moved to the inputs.
InputSignature
renamed toECDSAInputSignature
and some other name changes.
1.0.0 #
Final release for 1.0.0
1.0.0-rc.3 #
- Make static variables immutable as final or const.
1.0.0-rc.2 #
- Add
forceLowR
toECDSASignature.sign
that is true by default. This forces signatures to use a low r-value. - Transaction signatures now use low r-values.
1.0.0-rc.1 #
- Add witness transactions
LegacyTransaction
is replaced with a singleTransaction
class.
1.0.0-alpha.3 #
- Return HDPrivateKey from HDPrivateKey derivation
- Add example code
- hexToBytes and bytesToHex are now exposed
1.0.0-alpha.2 #
- Allow building secp256k1 for macOS using github download
- Require Dart 3
1.0.0-alpha #
Alpha pre-release of initial library.