bpwallet/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Modern, minimalistic & standard-compliant cold wallet library.
//
// SPDX-License-Identifier: Apache-2.0
//
// Written in 2020-2024 by
//     Dr Maxim Orlovsky <orlovsky@lnp-bp.org>
//
// Copyright (C) 2020-2024 LNP/BP Standards Association. All rights reserved.
// Copyright (C) 2020-2024 Dr Maxim Orlovsky. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#[macro_use]
extern crate amplify;
#[cfg(feature = "serde")]
extern crate serde_crate as serde;
#[macro_use]
#[cfg(feature = "clap")]
extern crate clap;
#[macro_use]
#[cfg(feature = "log")]
extern crate log;

pub mod indexers;
mod util;
mod data;
mod rows;
mod wallet;
mod layer2;
pub mod coinselect;
#[cfg(feature = "cli")]
pub mod cli;
#[cfg(feature = "signers")]
pub mod hot;
mod bip43;
#[cfg(feature = "fs")]
pub mod fs;

pub use bip43::{Bip43, DerivationStandard, ParseBip43Error};
pub use bpstd::*;
pub use data::{
    BlockHeight, BlockInfo, MiningInfo, Party, TxCredit, TxDebit, TxStatus, WalletAddr, WalletTx,
    WalletUtxo,
};
#[cfg(feature = "hot")]
pub use hot::{HotArgs, HotCommand};
#[cfg(feature = "signers")]
pub use hot::{Seed, SeedType};
pub use indexers::Indexer;
#[cfg(any(feature = "electrum", feature = "esplora", feature = "mempool"))]
pub use indexers::{AnyIndexer, AnyIndexerError};
pub use layer2::{
    Layer2, Layer2Cache, Layer2Coin, Layer2Data, Layer2Descriptor, Layer2Empty, Layer2Tx, NoLayer2,
};
pub use rows::{CoinRow, Counterparty, OpType, TxRow};
pub use util::MayError;
pub use wallet::{Wallet, WalletCache, WalletData, WalletDescr};