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

20 lines
443 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 use ethereum_bridge::EthereumBridgePlugin;
pub use erc20::ERC20Token;
pub use spv::SPVProofVerifier;