|
1 | | -# src/constants.py |
2 | | - |
3 | 1 | """ |
4 | 2 | Pi Coin Configuration Constants |
5 | 3 | This module contains constants related to the Pi Coin cryptocurrency. |
|
9 | 7 | PI_COIN_SYMBOL = "Pi" # Symbol for Pi Coin |
10 | 8 |
|
11 | 9 | # Pi Coin Value |
12 | | -PI_COIN_VALUE = 314159 # Fixed value of Pi Coin in USD |
| 10 | +PI_COIN_VALUE = 314159.00 # Fixed value of Pi Coin in USD |
13 | 11 |
|
14 | 12 | # Pi Coin Supply |
15 | 13 | PI_COIN_SUPPLY = 100_000_000_000 # Total supply of Pi Coin |
|
42 | 40 | PI_COIN_GOVERNANCE_MODEL = "Decentralized" # Governance model for Pi Coin |
43 | 41 |
|
44 | 42 | # Pi Coin Security Features |
45 | | -PI_COIN_ENCRYPTION_ALGORITHM = "AES-256" # Encryption algorithm for securing transactions |
46 | | -PI_COIN_HASHING_ALGORITHM = "SHA-256" # Hashing algorithm for block verification |
47 | | -PI_COIN_SIGNATURE_SCHEME = "ECDSA" # Digital signature scheme for transaction signing |
| 43 | +PI_COIN_ENCRYPTION_ALGORITHM = "AES-256-GCM" # Advanced Encryption Standard with Galois/Counter Mode |
| 44 | +PI_COIN_HASHING_ALGORITHM = "SHA-3-256" # SHA-3 for enhanced security |
| 45 | +PI_COIN_SIGNATURE_SCHEME = "ECDSA" # Elliptic Curve Digital Signature Algorithm |
48 | 46 |
|
49 | 47 | # Pi Coin Network Parameters |
50 | 48 | PI_COIN_MAX_PEERS = 100 # Maximum number of peers in the network |
|
54 | 52 | # Pi Coin Staking Parameters |
55 | 53 | PI_COIN_MIN_STAKE_AMOUNT = 100 # Minimum amount required to stake |
56 | 54 | PI_COIN_STAKE_REWARD_RATE = 0.05 # Annual reward rate for staking |
| 55 | +PI_COIN_STAKE_LOCK_PERIOD = 30 # Lock period for staked coins in days |
57 | 56 |
|
58 | 57 | # Pi Coin API Rate Limits |
59 | 58 | PI_COIN_API_REQUEST_LIMIT = 1000 # Maximum API requests per hour |
60 | 59 | PI_COIN_API_KEY_EXPIRATION = 3600 # API key expiration time in seconds |
61 | 60 |
|
62 | 61 | # Pi Coin Regulatory Compliance |
63 | 62 | PI_COIN_KYC_REQUIRED = True # Whether KYC is required for transactions |
64 | | -PI_COIN_COMPLIANCE_JURISDICTIONS = ["US", "EU", "UK"] # Jurisdictions for compliance |
| 63 | +PI_COIN_COMPLIANCE_JURISDICTIONS = ["US", "EU", "UK", "CA", "AU"] # Expanded jurisdictions for compliance |
| 64 | + |
| 65 | +# Pi Coin Advanced Features |
| 66 | +PI_COIN_AUTO_ADJUST_FEE = True # Automatically adjust transaction fees based on network congestion |
| 67 | +PI_COIN_FEE_ADJUSTMENT_FACTOR = 0.1 # Factor for adjusting fees |
| 68 | + |
| 69 | +# Pi Coin Governance Voting Parameters |
| 70 | +PI_COIN_VOTING_PERIOD = 7 # Voting period in days |
| 71 | +PI_COIN_MIN_VOTE_QUORUM = 0.2 # Minimum quorum for governance votes |
| 72 | + |
| 73 | +# Pi Coin Additional Security Features |
| 74 | +PI_COIN_DDOS_PROTECTION_ENABLED = True # Enable DDoS protection |
| 75 | +PI_COIN_MAX_FAILED_LOGIN_ATTEMPTS = 5 # Maximum failed login attempts before lockout |
65 | 76 |
|
66 | 77 | # Additional constants can be added here as needed |
0 commit comments