1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Network type definitions
//!
//! This module provides the [`Network`] enum for distinguishing between
//! Bitcoin mainnet and testnet.
/// Blockchain network type.
///
/// Used to determine version bytes for WIF encoding and other network-specific
/// operations.
///
/// # Example
///
/// ```
/// use rustywallet_keys::network::Network;
///
/// let mainnet = Network::Mainnet;
/// assert_eq!(mainnet.wif_version_byte(), 0x80);
///
/// let testnet = Network::Testnet;
/// assert_eq!(testnet.wif_version_byte(), 0xEF);
/// ```