parity-zcash/chain/src/lib.rs

46 lines
1.3 KiB
Rust

extern crate heapsize;
extern crate rustc_hex as hex;
extern crate zebra_crypto;
extern crate zebra_primitives;
extern crate zebra_serialization as ser;
#[macro_use]
extern crate zebra_serialization_derive;
pub mod constants;
mod block;
mod block_header;
mod join_split;
mod merkle_root;
mod sapling;
mod solution;
mod transaction;
mod indexed_block;
mod indexed_header;
mod indexed_transaction;
/// `IndexedBlock` extension
mod read_and_hash;
pub use zebra_primitives::{bigint, bytes, compact, hash};
pub use transaction::{
BTC_TX_VERSION, OVERWINTER_TX_VERSION, SAPLING_TX_VERSION, SPROUT_TX_VERSION,
};
pub use transaction::{OVERWINTER_TX_VERSION_GROUP_ID, SAPLING_TX_VERSION_GROUP_ID};
pub use block::Block;
pub use block_header::BlockHeader;
pub use join_split::{JoinSplit, JoinSplitDescription, JoinSplitProof};
pub use merkle_root::{merkle_node_hash, merkle_root};
pub use sapling::{Sapling, SaplingOutputDescription, SaplingSpendDescription};
pub use solution::EquihashSolution;
pub use transaction::{OutPoint, Transaction, TransactionInput, TransactionOutput};
pub use indexed_block::IndexedBlock;
pub use indexed_header::IndexedBlockHeader;
pub use indexed_transaction::IndexedTransaction;
pub use read_and_hash::{HashedData, ReadAndHash};
pub type ShortTransactionID = hash::H48;