v0.7.0
π Highlights
- π Extended key decoding (BIP-32 / SLIP-132) β
xpub/ypub/zpub+ multisig & testnet variants βDecodedKey - π PSBT decoding (BIP-174 v0 & BIP-370 v2) from base64/hex β
DecodedPsbtwith inputs, outputs, totals & fee
β οΈ Breaking Changes
Destination.destinationrenamed toDestination.valuewellKnown()now returnsnullinstead offalseon failure- Removed the
Inputtype alias β usestring - Removed the default export β use
import { decode } from 'bitcoin-decoder'
π Changed
- New
DecodeOptions.psbt: { network }option (defaultmainnet) - New error codes:
INVALID_EXTENDED_KEY,INVALID_PSBT - New type exports:
DecodedKey,DecodedPsbt,ExtendedKey,PsbtData,PsbtInput,PsbtOutput, and more
Full Changelog: v0.6.2...v0.7.0