Quranium Chain Transaction Signing
How It Works:
Transaction Creation:
Users input recipient address, amount, and gas fees.
The wallet converts values to hexadecimal and fetches dynamic gas prices from the Quranium node.
SLH-DSA Signing:
A 49,856-byte signature is generated using the SLH-DSA algorithm.
The user’s public key is appended to the signature for Quranium-specific verification.
Transaction Structure:
Quranium uses a RLP encoding with 7 fields (nonce, gas price, gas limit, to-address, value, data, and signature+publicKey).
This structure ensures compatibility with Quranium nodes.
Broadcasting:
The signed transaction is sent to the Quranium network for processing.
Code Flow Summary
User Input → Transaction Data :
addressTo
,amount
,gasFee
→hexTxData
.
Signing :
hexTxData
→ RLP encode + Keccak-256 →msgHash
→ SLH-DSA signature.
Final Transaction :
signature + publicKey
→ RLP encode →rawTx
.
Broadcast :
eth_sendRawTransaction
→ Quranium node.
Last updated