v0.13.0
This is a minor release and includes a significant API change relating to the standard methods toJSON/fromJSON
. When updating it's important to note that toJSON
is now compatible with JSON.stringify
and will work as expected and calling JSON.stringify
on any Bitcore object, and toJSON
called directly will not return a string. The method fromJSON
has be replaced with fromObject
and JSON is expected to be parsed prior to instantiating a Bitcore object, see #1312 for the full details.
There have been a number of bug fixes and performance improvements since the v0.12.0 release. Block parsing should be around 30 times faster, including other performance improvements related to recognizing script types in support of bitcore-node.
Here is a summary of the changes:
- Keys
- General
- #1312
toJSON
compatible withJSON.stringify
- #1311
toObject
includes hash for block and transaction - #1279 Optimizations for
BufferReader.readUInt64LEBN
- #1278 Signature
nhashtype
bug fix - #1253 BN
fromString
base parameter - #1250 Bug fix for public key compact signatures
- #1227
versionGuard
improvements - #1208 Bug fix with big numbers (BN) >= 2 ^ 52
- #1205 Block parsing bug fixes
- #1312
- Transaction
- #1301 Signing for public-key-out utxos
- #1271 Fee estimation fixes
- #1264
sortOutputs
bug fix - #1248 Fix bug with misleading
getSerializationError
- #1235
clearOutputs
for payment channel support - #1229 Fixes for
getSerializationError
tests - #1226
getSerializationError
refactoring - #1214 Transaction fee consistency check
- #1213 Fix bug with Transaction
isFullySigned
- Script
- #1298 Performance improvements for
isPublicKeyOut
- #1296 Performance improvements for
toAddress
and related - #1295 added
toASM
andfromASM
- #1287
CHECKLOCKTIMEVERIFY
was added - #1284
hasDefinedHashtype
bug fix - #1276
getSignatureOperationsCount
was added - #1239
getData
bug fixes with empty OP_RETURN - #1231
toObject
includes hex for handling invalid scripts - #1216 Invalid script buffer handling bug fix
- #1207 Bug fix with recognizing p2sh inputs
- #1298 Performance improvements for
Thanks to all of the contributors: @brandonrobertz, @braydonf, @carnesen, @dskloet, @eordano, @fanatid, @greggzigler, @isocolsky, @maraoz, @matiu, @mpolci, @mruddy and @pnagurny