Skip to content

v0.13.0

Compare
Choose a tag to compare
@braydonf braydonf released this 19 Aug 15:20
· 14048 commits to master since this release

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
    • #1317 Restore error when trying to derive a hardened path with HDPublicKey
    • #1268 PrivateKey alternative networks bug fix
    • #1262 PrivateKey instantiation bug fixes
    • #1218 PublicKey toObject bug with invalid buffer
  • General
    • #1312 toJSON compatible with JSON.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
  • 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 and fromASM
    • #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

Thanks to all of the contributors: @brandonrobertz, @braydonf, @carnesen, @dskloet, @eordano, @fanatid, @greggzigler, @isocolsky, @maraoz, @matiu, @mpolci, @mruddy and @pnagurny