Skip to main content

blockle_core/
lib.rs

1//! Core data structures for the Blockle blockchain.
2//!
3//! Everything consensus-serializable lives here: block headers, blocks,
4//! transactions (including the reserved shielded bundle), amounts, keys and
5//! bech32m `block1…` addresses, Merkle roots, and the canonical binary
6//! encoding used for hashing and signing.
7
8pub mod amount;
9pub mod auxpow;
10pub mod block;
11pub mod encode;
12pub mod hash;
13pub mod keys;
14pub mod merkle;
15pub mod transaction;
16
17pub use amount::{format_amount, parse_amount, COIN};
18pub use auxpow::AuxPow;
19pub use block::{Block, BlockHeader};
20pub use hash::{blake2b_256, display_hash, sha256d, Hash32};
21pub use keys::{decode_address, encode_address, Address, Keypair};
22pub use transaction::{
23    ContractAction, OutPoint, ShieldedBundle, ShieldedOutput,
24    ShieldedSpend, ShieldedTransfer, Transaction, TxInput, TxOutput,
25};