# tencoin_core/constants.py


MAINNET_HRP = "tc"


COIN_TYPE = 5353


BIP84_PURPOSE = 84


DERIVATION_PATH = f"m/{BIP84_PURPOSE}'/{COIN_TYPE}'/0'/0/0"  


BIP39_ENTROPY_BITS = 128  
BIP39_CHECKSUM_BITS = 4   


P2PKH_VERSION = 0x00      
P2SH_VERSION = 0x05       
P2WPKH_VERSION = 0        


TENOS_PER_TEC = 100_000_000
DUST_LIMIT = 546


DEFAULT_RPC_PORT = 10111
DEFAULT_P2P_PORT = 10110


DEFAULT_RPC_TOKEN = ""


DEFAULT_SEED_NODES = [
    "seed.tencoin.org",
]


DEFAULT_FEE_RATE = 10  
PRIORITY_FEE_RATE = 20
ECONOMY_FEE_RATE = 5
MIN_RELAY_FEE = 1000  


MAINNET_MAGIC = b'\xf9\xbe\xb4\xd9'
TESTNET_MAGIC = b'\x0b\x11\x09\x07'


OP_DUP = 0x76
OP_HASH160 = 0xa9
OP_EQUALVERIFY = 0x88
OP_CHECKSIG = 0xac
OP_EQUAL = 0x87