NAC_Blockchain/nac-bridge-ethereum/src/lib.rs

28 lines
812 B
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.

//! NAC以太坊桥插件
//!
//! 实现NAC钱包与以太坊主网的跨链桥功能
//!
//! # 功能
//!
//! - ETH和ERC-20余额查询
//! - 锁定交易构造ETH/ERC-20 → NAC
//! - 解锁交易构造NAC → ETH/ERC-20
//! - SPV证明验证
//! - 中继节点通信
pub mod ethereum_bridge;
pub mod erc20;
pub mod spv;
pub mod error;
pub mod lock_unlock;
pub mod event_listener;
pub mod security;
pub use ethereum_bridge::EthereumBridgePlugin;
pub use erc20::ERC20Token;
pub use spv::SPVProofVerifier;
pub use error::{BridgeError, BridgeResult};
pub use lock_unlock::{LockRecord, LockStatus, UnlockRequest, UnlockStatus, LockUnlockManager};
pub use event_listener::{BridgeEvent, BridgeEventType, EventFilter, EventListener};
pub use security::{SecurityConfig, SecurityManager, AuditLogEntry};