descriptor-wallet 0.5.2

Library for building descriptor-based bitcoin wallets
Documentation

Descriptor wallet library

Build Tests Lints codecov

crates.io Docs unsafe forbidden Apache2 licensed

Library for building descriptor-based bitcoin wallets. Everything a modern read-only bitcoin wallet needs, but which is not (yet) a part of rust-bitcoin library.

NB: The library does not work with private keys; it is advised that wallets will be designed in a way assuming zero private key access for all of their operations aside from transaction signing; this part must be separated into other repository/library and be strictly controlled.

This library previously was a part of LNP/BP Core Library.

Library components:

  • More efficient manipulations with BIP-32 derivation paths
  • Universal miniscript/classical bitcoin descriptors
  • Script templates allowing embedding extended pubkeys into bitcoin script assembly
  • Lexicographic ordering of transaction & PSBT inputs & oututs
  • Script type system
  • Helper types for working with hash-lock contracts
  • PSBT utility functions (retrieving previous output, computing fee)

Includes separate crate for SLIP-132 functionality in /slip132 subdirectory.