mod.rs 777 B

1234567891011121314151617181920212223242526272829303132333435
  1. /// Block definition
  2. pub mod block;
  3. pub use block::{Block, ProposalChain};
  4. /// Transactions
  5. pub mod tx;
  6. pub use tx::Tx;
  7. /// Consensus metadata
  8. pub mod metadata;
  9. pub use metadata::{Metadata, StreamletMetadata};
  10. /// Consensus participant
  11. pub mod participant;
  12. pub use participant::Participant;
  13. /// Consensus vote
  14. pub mod vote;
  15. pub use vote::Vote;
  16. /// Consensus state
  17. pub mod state;
  18. pub use state::ValidatorState;
  19. /// Utility functions
  20. pub mod util;
  21. use lazy_static::lazy_static;
  22. lazy_static! {
  23. /// Genesis hash for the mainnet chain
  24. pub static ref MAINNET_GENESIS_HASH_BYTES: blake3::Hash = blake3::hash(b"darkfi_mainnet");
  25. /// Genesis hash for the testnet chain
  26. pub static ref TESTNET_GENESIS_HASH_BYTES: blake3::Hash = blake3::hash(b"darkfi_testnet");
  27. }