iop_journal_proto/
lib.rs

1pub mod serializer;
2
3use std::io::{prelude::*, Cursor};
4
5use anyhow::Result;
6use varint::VarintWrite; // VarintRead
7
8// TODO move all blockchain-related types to hydra-proto after adding typetags to Asset and TransactionType.
9/// State identifier of a decentralized ledger, usually represented as a sequence number of blocks.
10pub type BlockHeight = u32;
11/// Duration (e.g. a year) expressed as an expected number of blocks on the ledger, approximating the duration.  
12pub type BlockCount = u32;
13/// A unique value attached to requests as protection from replay attacks.
14pub type Nonce = u64;