BIP329
A library for working with BIP329 labels.
This library provides a way to work with BIP329 labels in a Rust program.
The main data structure is the Labels struct, which is a list of Label structs.
The Label enum is a discriminated union of all the different types of labels.
The Labels struct can be exported to a JSONL file.
The Labels struct can be imported from a JSONL file.
Example Import:
use Labels;
let labels = try_from_file.unwrap;
Example Export:
use Labels;
// Create a Labels struct
let labels = try_from_file.unwrap;
// Create a JSONL string
let jsonl = labels.export.unwrap;
You can encrypt and decrypt the Labels into/from the encryption::EncryptedLabels struct using the encryption feature.
Example encryption:
use ;
let labels = try_from_file.unwrap;
let encrypted = encrypt.unwrap;
let decrypted: Labels = encrypted.decrypt.unwrap;