lib.rs 1017 B
Newer Older
extern crate rustc_hex as hex;
extern crate heapsize;
extern crate primitives;
extern crate bitcrypto as crypto;
extern crate serialization as ser;
#[macro_use]
extern crate serialization_derive;
Marek Kotewicz's avatar
Marek Kotewicz committed
mod block;
mod block_header;
mod join_split;
Marek Kotewicz's avatar
Marek Kotewicz committed
mod merkle_root;
mod transaction;

/// `IndexedBlock` extension
mod read_and_hash;
mod indexed_block;
mod indexed_header;
mod indexed_transaction;

NikVolf's avatar
NikVolf committed
pub trait RepresentH256 {
NikVolf's avatar
NikVolf committed
pub use primitives::{hash, bytes, bigint, compact};
Svyatoslav Nikolsky's avatar
Svyatoslav Nikolsky committed
pub use block_header::{BlockHeader, BlockHeaderNonce};
pub use join_split::{JointSplit, JointSplitDescription};
pub use merkle_root::{merkle_root, merkle_node_hash};
pub use transaction::{Transaction, TransactionInput, TransactionOutput, OutPoint};

pub use read_and_hash::{ReadAndHash, HashedData};
pub use indexed_block::IndexedBlock;
pub use indexed_header::IndexedBlockHeader;
pub use indexed_transaction::IndexedTransaction;

pub type ShortTransactionID = hash::H48;