mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
Rename the coins folder to networks (#583)
* Rename the coins folder to networks Ethereum isn't a coin. It's a network. Resolves #357. * More renames of coins -> networks in orchestration * Correct paths in tests/ * cargo fmt
This commit is contained in:
39
networks/monero/src/lib.rs
Normal file
39
networks/monero/src/lib.rs
Normal file
@@ -0,0 +1,39 @@
|
||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||
#![doc = include_str!("../README.md")]
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
pub use monero_io as io;
|
||||
pub use monero_generators as generators;
|
||||
pub use monero_primitives as primitives;
|
||||
|
||||
mod merkle;
|
||||
|
||||
/// Ring Signature structs and functionality.
|
||||
pub mod ring_signatures;
|
||||
|
||||
/// RingCT structs and functionality.
|
||||
pub mod ringct;
|
||||
|
||||
/// Transaction structs and functionality.
|
||||
pub mod transaction;
|
||||
/// Block structs and functionality.
|
||||
pub mod block;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
/// The minimum amount of blocks an output is locked for.
|
||||
///
|
||||
/// If Monero suffered a re-organization, any transactions which selected decoys belonging to
|
||||
/// recent blocks would become invalidated. Accordingly, transactions must use decoys which are
|
||||
/// presumed to not be invalidated in the future. If wallets only selected n-block-old outputs as
|
||||
/// decoys, then any ring member within the past n blocks would have to be the real spend.
|
||||
/// Preventing this at the consensus layer ensures privacy and integrity.
|
||||
pub const DEFAULT_LOCK_WINDOW: usize = 10;
|
||||
|
||||
/// The minimum amount of blocks a coinbase output is locked for.
|
||||
pub const COINBASE_LOCK_WINDOW: usize = 60;
|
||||
|
||||
/// Monero's block time target, in seconds.
|
||||
pub const BLOCK_TIME: usize = 120;
|
||||
Reference in New Issue
Block a user