| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /* This file is part of DarkFi (https://dark.fi)
- *
- * Copyright (C) 2020-2022 Dyne.org foundation
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- /// Block definition
- pub mod block;
- pub use block::{Block, BlockInfo, BlockProposal, Header, ProposalChain};
- /// Constants
- pub mod constants;
- /// Consensus block leader information
- pub mod lead_info;
- pub use lead_info::{LeadInfo, LeadProof};
- /// Consensus state
- pub mod state;
- pub use state::{ValidatorState, ValidatorStatePtr};
- /// P2P net protocols
- pub mod proto;
- /// async tasks to utilize the protocols
- pub mod task;
- /// Lamport clock
- pub mod clock;
- pub use clock::{Clock, Ticks};
- /// Consensus participation coin functions and definitions
- pub mod leadcoin;
- /// Utility types
- pub mod types;
- pub use types::Float10;
- /// Utility functions
- pub mod utils;
- /// Wallet functions
- pub mod wallet;
- /// transfered tx proof with public inputs.
- pub mod stx;
- pub use stx::TransferStx;
- /// encrypted receipient coin info
- pub mod rcpt;
- pub use rcpt::{EncryptedTxRcpt, TxRcpt};
- /// transfer transaction
- pub mod tx;
- pub use tx::Tx;
|