mod.rs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* This file is part of DarkFi (https://dark.fi)
  2. *
  3. * Copyright (C) 2020-2022 Dyne.org foundation
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. /// Block definition
  19. pub mod block;
  20. pub use block::{Block, BlockInfo, BlockProposal, Header, ProposalChain};
  21. /// Constants
  22. pub mod constants;
  23. /// Consensus block leader information
  24. pub mod lead_info;
  25. pub use lead_info::{LeadInfo, LeadProof};
  26. /// Consensus state
  27. pub mod state;
  28. pub use state::{ValidatorState, ValidatorStatePtr};
  29. /// P2P net protocols
  30. pub mod proto;
  31. /// async tasks to utilize the protocols
  32. pub mod task;
  33. /// Lamport clock
  34. pub mod clock;
  35. pub use clock::{Clock, Ticks};
  36. /// Consensus participation coin functions and definitions
  37. pub mod leadcoin;
  38. /// Utility types
  39. pub mod types;
  40. pub use types::Float10;
  41. /// Utility functions
  42. pub mod utils;
  43. /// Wallet functions
  44. pub mod wallet;
  45. /// transfered tx proof with public inputs.
  46. pub mod stx;
  47. pub use stx::TransferStx;
  48. /// encrypted receipient coin info
  49. pub mod rcpt;
  50. pub use rcpt::{EncryptedTxRcpt, TxRcpt};
  51. /// transfer transaction
  52. pub mod tx;
  53. pub use tx::Tx;