The Backend of LuckTrainingRoadmaps

Crypto Payment and Custody Architecture (Chapter 16)

Crypto Payment and Custody Architecture (Chapter 16) An architecture diagram generated by Archify. Player Wallet · deposit / withdraw · Architecture component Player Wallet deposit / withdraw Wallet Service · HD derivation, BIP-44 · Architecture component Wallet Service HD derivation, BIP-44 Provably Fair Contract · Chainlink VRF v2.5 · Architecture component Provably Fair Contract Chainlink VRF v2.5 Compliance Engine · Travel Rule + KYT · Architecture component Compliance Engine Travel Rule + KYT Chain Abstraction Layer · IChainAdapter interface · Architecture component · one adapter per chain Chain Abstraction Layer IChainAdapter interface one adapter per chain Blockchain Networks · ETH, BSC, Polygon, Solana · Architecture component Blockchain Networks ETH, BSC, Polygon, Solana FATF / Regulators · originator, beneficiary data · Architecture component FATF / Regulators originator, beneficiary data Hot Wallet · 5-15% reserves, single-sig · custody: HSM-backed signing, air-gapped cold storage Hot Wallet 5-15% reserves, single-sig Lightning Network · instant micro-payments · Architecture component Lightning Network instant micro-payments HSM Key Store · Chapter 20 signing infra · custody: HSM-backed signing, air-gapped cold storage HSM Key Store Chapter 20 signing infra Cold Storage · 70-85% reserves, 3-of-5 · custody: HSM-backed signing, air-gapped cold storage Cold Storage 70-85% reserves, 3-of-5 request deposit address derive HD child address broadcast tx, n confirmations instant channel routing aggregate confirmed deposits HSM signing request scheduled sweep, 3-of-5 multisig KYT + Travel Rule screening originator/beneficiary report on-chain VRF settlement custody: HSM-backed signing, air-gapped cold storage Legend Backend Cloud Security External

Custody Tiers

  • • Hot wallet: 5-15% of reserves, single-sig
  • • Cold storage: 70-85%, air-gapped 3-of-5
  • • Scheduled sweeps move excess hot to cold

Chain Abstraction

  • • One IChainAdapter interface for every chain
  • • Each chain implements it once, same contract
  • • New chain: one adapter, no other code changes

Compliance By Design

  • • On-chain settlement has no chargebacks
  • • KYT and Travel Rule checks run before trust
  • • Confirmation thresholds double above a value cap