Module walletd_bitcoin::prelude
source · Expand description
This prelude module simplifies importing many useful items from the walletd_bitcoin crate using a glob import.
To use this prelude, add the following to your code:
use walletd_bitcoin::prelude::*;
Re-exports
pub use crate::BitcoinAddress;
pub use crate::BitcoinAmount;
pub use crate::BitcoinWallet;
pub use crate::BitcoinWalletBuilder;
pub use crate::Blockstream;
Structs
- A Bitcoin ECDSA private key
- A Bitcoin ECDSA public key
- A builder that can be used to build a BlockchainConnector with custom options.
Enums
- Represents the type of blockchain connector that is being used.
Traits
- Used to connect to a blockchain and send and receive information to and from the blockchain.
- The public address of a cryptocurrency.
- Provides a common interface for handling amounts of a cryptocurrency. Has functions to convert to and from the main unit and the smallest unit of the coin.
- Provides common functionality for a crypto wallet. Contains functions to get the balance, send and receive transactions, and sync the wallet with the blockchain.
- Provides a common interface for building a CryptoWallet.