BitcoinJS v2.1.0 Release Notes

  • 🚀 From this release users should use the HDNode directly (compared to accessing .keyPair) when performing ECDSA operations such as sign or verify. Ideally you shoud not have to directly access HDNode internals for general usage, as it can often be confusing and error prone.

    added

    • ECPair.prototype.getNetwork
    • HDNode.prototype.getNetwork, wraps the underyling keyPair's getNetwork method
    • HDNode.prototype.getPublicKeyBuffer, wraps the underyling keyPair's getPublicKeyBuffer method
    • HDNode.prototype.sign, wraps the underlying keyPair's sign method
    • HDNode.prototype.verify, wraps the underlying keyPair's verify method