Skip to content

v0.7.0

Choose a tag to compare

@Psycarlo Psycarlo released this 27 Jun 00:24
· 15 commits to main since this release
c45e726

πŸš€ 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 β†’ DecodedPsbt with inputs, outputs, totals & fee

⚠️ Breaking Changes

  • Destination.destination renamed to Destination.value
  • wellKnown() now returns null instead of false on failure
  • Removed the Input type alias β€” use string
  • Removed the default export β€” use import { decode } from 'bitcoin-decoder'

πŸ”„ Changed

  • New DecodeOptions.psbt: { network } option (default mainnet)
  • 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