Skip to content

Commit 2c5c8e9

Browse files
authored
Update constants.py
1 parent de60502 commit 2c5c8e9

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

src/constants.py

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# src/constants.py
2-
31
"""
42
Pi Coin Configuration Constants
53
This module contains constants related to the Pi Coin cryptocurrency.
@@ -9,7 +7,7 @@
97
PI_COIN_SYMBOL = "Pi" # Symbol for Pi Coin
108

119
# 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
1311

1412
# Pi Coin Supply
1513
PI_COIN_SUPPLY = 100_000_000_000 # Total supply of Pi Coin
@@ -42,9 +40,9 @@
4240
PI_COIN_GOVERNANCE_MODEL = "Decentralized" # Governance model for Pi Coin
4341

4442
# 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
4846

4947
# Pi Coin Network Parameters
5048
PI_COIN_MAX_PEERS = 100 # Maximum number of peers in the network
@@ -54,13 +52,26 @@
5452
# Pi Coin Staking Parameters
5553
PI_COIN_MIN_STAKE_AMOUNT = 100 # Minimum amount required to stake
5654
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
5756

5857
# Pi Coin API Rate Limits
5958
PI_COIN_API_REQUEST_LIMIT = 1000 # Maximum API requests per hour
6059
PI_COIN_API_KEY_EXPIRATION = 3600 # API key expiration time in seconds
6160

6261
# Pi Coin Regulatory Compliance
6362
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
6576

6677
# Additional constants can be added here as needed

0 commit comments

Comments
 (0)