Skip to content

v0.3.0

Compare
Choose a tag to compare
@BitcoinZavior BitcoinZavior released this 30 Jan 17:10
c1452b8

Updates to incorporate API from bdk ffi v0.26

APIs changed

  • The descriptor and changeDescriptor arguments on the wallet constructor now take a Descriptor instead of a String.

APIs added

  • Added RpcConfig, BlockchainConfig.rpc
  • Added Descriptor type with the following named constructors:
  • Default create constructor, that requires a descriptor in String format and a Network
  • newBip44 constructor returns a Descriptor with structure pkh(key/44'/{0,1}'/0'/{0,1}/*)
  • newBip44Public constructor returns a Descriptor with structure pkh(key/{0,1}/*)
  • newBip49 constructor returns a Descriptor with structure sh(wpkh(key/49'/{0,1}'/0'/{0,1}/*))
  • newBip49Public constructor returns a Descriptor with structure sh(wpkh(key/{0,1}/*))
  • newBip84 constructor returns a Descriptor with structure wpkh(key/84'/{0,1}'/0'/{0,1}/*)
  • newBip84Public constructor returns a Descriptor with structure wpkh(key/{0,1}/*)
  • asString returns the public version of the output descriptor in String format
  • asPrivateString returns the private version of the output descriptor if available, otherwise, return the public version

API documentation is available at here