Skip to main content

Crate bdk_labels

Crate bdk_labels 

Source
Expand description

§bdk-labels

A Rust library providing native BIP-329 (Wallet Labels Export Format) support for the Bitcoin Dev Kit (BDK) ecosystem.

This crate extends bdk_wallet::Wallet to allow developers to label transactions, addresses, UTXOs, and public keys with human-readable labels. It provides a deterministic, BTreeMap-backed memory structure (LabelChangeset) and a decoupled persistence trait (LabelPersister) for seamless integration with any database backend.

Re-exports§

pub use changeset::LabelChangeset;
pub use changeset::MergeStrategy;
pub use error::Error;
pub use io::export;
pub use io::import;
pub use persist::LabelPersister;
pub use extension::*;

Modules§

changeset
error
extension
io
persist

Structs§

InputTarget
A wrapper type for targeting a specific transaction input.
OutputTarget
A wrapper type for targeting a specific transaction output (UTXO).

Enums§

LabelTarget
Represents the various Bitcoin primitives that can be tagged with a BIP-329 label.

Traits§

Bip329
The core trait providing BIP-329 operations for a wallet.