NAC_Blockchain/nvm_v2/nvm-l0/src/lib.rs

50 lines
1.5 KiB
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// NVM-L0: NewAssetChain Virtual Machine - Layer 0 (Consensus & Storage Layer)
//
// 共识与存储层负责DAG共识、状态树、交易池和网络层
// Re-export NAC UDM types
pub use nac_udm::prelude::*;
pub mod block;
pub mod consensus;
pub mod dag;
pub mod merkle;
pub mod transaction;
pub mod types;
pub mod state_tree;
pub mod vm_integration;
// CBPP (Constitutional Block Production Protocol) Components
pub mod constitutional_receipt;
pub mod open_production_network;
pub mod fluid_block_model;
pub mod block_coordinate;
pub mod cbpp_integration;
pub mod constitutional_layer;
pub mod asset_classification;
pub mod upgrade;
// CSNP (Constitutional Structured Network Protocol) V2.0
pub mod csnp;
pub use block::{Block, BlockHeader};
pub use consensus::{ConsensusEngine, DagConsensus};
pub use dag::{DagNode, DagGraph};
pub use merkle::{MerkleTree, MerkleProof};
pub use transaction::{Transaction, TransactionPool};
pub use types::{Address, Hash, Signature};
pub use state_tree::{StateTree, AccountState, StateTreeSnapshot};
pub use vm_integration::{NVM, VMConfig};
pub use constitutional_receipt::{ConstitutionalReceipt, ConstitutionalReceiptManager};
pub use open_production_network::{OpenProductionNetwork, BlockProducer, DID, KYCStatus};
pub use fluid_block_model::{FluidBlockModel, FluidBlockConfig, FluidBlockStats};
pub use block_coordinate::{BlockCoordinate, BlockCoordinateManager, CoordinateStats};
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}