Crate lwk_common

Source
Expand description

A crate containing common code used in multiple other crate in the workspace, such as:

  • Utils to inspect a PSET: get the net effect of a PSET on a given wallet pset_balance(), or get how many signatures are missing , and which signers should provide them pset_signatures().
  • Signer trait: contains the methods to be implemented by a signer such as signing a pset or returning an xpub

To avoid circular dependencies this crate must not depend on other crate of the workspace

Re-exports§

pub use crate::precision::Precision;

Modules§

electrum_ssl
precision

Structs§

InvalidBipVariant
InvalidBlindingKeyVariant
InvalidKeyOriginXpub
InvalidMultisigVariant
InvalidSinglesigVariant
Issuance
PsetBalance
PsetDetails
PsetSignatures
Recipient

Enums§

Bip
DescriptorBlindingKey
Some descriptor blinding keys variant
Error
Multisig
QrError
Singlesig

Traits§

Signer
A trait defining methods of signers, providing blanket implementations for some methods.

Functions§

address_to_text_qr
Convert the given address in a string representing a QR code to be consumed from a terminal
address_to_uri_qr
Convert the given elements address to an image uri
burn_script
Create the same burn script that Elements Core wallet creates
derive_blinding_key
derive_script_pubkey
is_provably_segwit
Whether a script pubkey is provably segwit
keyorigin_xpub_from_str
multisig_desc
pset_balance
pset_issuances
pset_signatures
singlesig_desc