Changelog History
Page 5
-
v2.1.0 Changes
๐ From this release users should use the HDNode directly (compared to accessing
.keyPair
) when performing ECDSA operations such assign
orverify
. Ideally you shoud not have to directly accessHDNode
internals for general usage, as it can often be confusing and error prone.โ added
ECPair.prototype.getNetwork
HDNode.prototype.getNetwork
, wraps the underyling keyPair'sgetNetwork
methodHDNode.prototype.getPublicKeyBuffer
, wraps the underyling keyPair'sgetPublicKeyBuffer
methodHDNode.prototype.sign
, wraps the underlying keyPair'ssign
methodHDNode.prototype.verify
, wraps the underlying keyPair'sverify
method
-
v2.0.0 Changes
๐ In this release we have strived to simplify the API, using native types wherevever possible to encourage cross-compatibility with other open source community modules.
๐ The
ecdsa
module has been removed in lieu of using a new ECDSA module (for performance and safety reasons) during the2.x.y
major release. ๐ Several other cumbersome modules have been removed, with their new independent modules recommended for usage instead for greater modularity in your projects.
Backward incompatible changes:
โ added
- ๐ export
address
, foraddress
based utility functions, most compatible, just withoutAddress
instantiation, see #401, #444 - ๐ export
script
, forscript
based utility functions, mostly compatible, just withoutScript
instantiation, see #438, #444 - ๐ export
ECPair
, a merged replacement forECKey
/ECPubKey
, invalid types will throw viatypeforce
๐ changed
address.toOutputScript
,ECPair.prototype.fromWIF
andHDNode.prototype.fromBase58
no longer automatically detect the network,networks.bitcoin
is always assumed unless given.assert
was used for type checking, now replaced bytypeforce
๐
BIP66
compliant strict DER signature validation was added toECSignature.fromDER
, changing the exact exception messages slightly, see #448.new HDNode(d/Q, chainCode, network)
->new HDNode(keyPair, chainCode)
, now usesECPair
HDNode.prototype.toBase58(false)
->HDNode.prototype.neutered().toBase58()
for exporting an extended public keyHDNode.prototype.toBase58(true)
->HDNode.prototype.toBase58()
for exporting an extended private keyTransaction.prototype.hashForSignature(prevOutScript, inIndex, hashType)
->Transaction.prototype.hashForSignature(inIndex, prevOutScript, hashType)
Transaction.prototype.addInput(hash, ...)
:hash
could be a string, Transaction or Buffer ->hash
can now only be aBuffer
.Transaction.prototype.addOutput(scriptPubKey, ...)
:scriptPubKey
could be a string,Address
or aBuffer
->scriptPubKey
can now only be aBuffer
.TransactionBuilder
API unchanged.
โ removed
- ๐ export
Address
,strings
are now used, benchwith no performance loss for most use cases - export
base58check
, usebs58check
instead - export
ecdsa
, useecurve
instead - export
ECKey
, use new exportECPair
instead - export
ECPubKey
, use new exportECPair
instead - ๐ export
Wallet
, see README.md#complementing-libraries instead export
Script
, use new utility exportscript
instead (#438 for more information)crypto.HmacSHA256
, use node crypto insteadcrypto.HmacSHA512
, use node crypto insteadTransaction.prototype.sign
, useTransactionBuilder.prototype.sign
Transaction.prototype.signInput
, useTransactionBuilder.prototype.sign
Transaction.prototype.validateInput
, useTransaction.prototype.hashForSignature
andECPair.verify
HDNode.fromBuffer
, useHDNode.fromBase58
insteadHDNode.fromHex
, useHDNode.fromBase58
insteadHDNode.toBuffer
, useHDNode.prototype.toBase58
insteadHDNode.toHex
, useHDNode.prototype.toBase58
instead๐
networks.*.magic
, see the comment here๐
networks.[viacoin|viacointestnet|gamerscoin|jumbucks|zetacoin]
, import these yourself (see #383/a0e6ee7)networks.*.estimateFee
, out-dated
๐ renamed
Message
->message
scripts
->script
scripts.dataOutput
->script.nullDataOutput
(per convention)
- ๐ export