added
- Signer and SignerAsync interfaces
- sign functions can accept Signer | SignerAsync interfaces in place of privateKey
- Added an async signAsync function (needed if you use SignerAsync interface) that returns a promise.
fixed
- Fixed TypeScript types
added
- TypeScript types
added
- Support for Segwit signatures compatible with Electrum. (See README)
fixed
- Fix UTF8 handling of message.
added
- Segwit support for P2WPKH and P2SH-P2WPKH addresses. This is based on Trezor implementation.
breaking
messagePrefix
is now the last parameter for thesign
,verify
andmagicHash
functionsmessagePrefix
is now defaulted to the Bitcoin network message prefix