SecurityOverview

Security

T402 is designed with security as a core principle. This section documents the cryptographic foundations, threat model, and security audit scope for the protocol.

T402 is preparing for a formal security audit. This documentation is designed to assist auditors and security researchers in understanding the protocol’s security properties.

Security Documentation

DocumentDescription
Cryptographic OperationsComplete documentation of all cryptographic algorithms, signature schemes, and key management across all supported blockchains.
Threat ModelAnalysis of trust assumptions, in-scope threats, attack vectors, and mitigation strategies.
Audit ScopeDetailed scope document for security auditors including critical code paths, testing recommendations, and focus areas.

Security Principles

1. No Custom Cryptography

T402 uses only industry-standard cryptographic primitives:

Chain FamilySignature AlgorithmHash FunctionStandard
EVMECDSA (secp256k1)Keccak-256EIP-712, EIP-3009
SolanaEd25519SHA-512Solana standard
TONEd25519SHA-256TON TL-B
TRONECDSA (secp256k1)SHA-256TRON protocol
NEAREd25519SHA-256NEP-141
AptosEd25519SHA3-256Fungible Asset
TezosEd25519/secp256k1/P256Blake2bFA2 (TZIP-12)
PolkadotSr25519/Ed25519Blake2bAsset Hub
StacksECDSA (secp256k1)SHA-256SIP-010
CosmosECDSA (secp256k1)SHA-256Bank MsgSend

2. Defense in Depth

Multiple layers of protection prevent unauthorized payments:

┌─────────────────────────────────────────────────────────────┐
│                    TRANSPORT LAYER                          │
│  HTTPS/TLS encryption for all communication                │
├─────────────────────────────────────────────────────────────┤
│                    PROTOCOL LAYER                           │
│  EIP-712 typed data prevents signature reuse               │
├─────────────────────────────────────────────────────────────┤
│                    APPLICATION LAYER                        │
│  Nonces, time windows, amount validation                   │
├─────────────────────────────────────────────────────────────┤
│                    BLOCKCHAIN LAYER                         │
│  Smart contract verification, finality guarantees          │
└─────────────────────────────────────────────────────────────┘

3. Minimal Trust Requirements

EntityTrust LevelReason
BlockchainHighProtocol security depends on blockchain consensus
Token ContractsHighUSDT/USDC contracts must function correctly
FacilitatorMediumCan be self-hosted; cannot forge signatures
Resource ServerLowCannot access funds without valid signature
ClientNoneSignatures are cryptographically verified

4. Fail-Safe Design

  • Invalid signatures are rejected before any funds move
  • Insufficient balance checks occur before settlement
  • Time windows prevent indefinite authorization validity
  • Nonce registry prevents double-spending

Security Features by Chain

EVM Networks

FeatureImplementation
Replay ProtectionEIP-712 domain separator (chainId, verifyingContract)
AuthorizationEIP-3009 TransferWithAuthorization
Nonce Management32-byte random nonce, on-chain registry
Time BoundsvalidAfter / validBefore timestamps
Smart WalletsEIP-1271 signature verification
CounterfactualERC-6492 wrapped signatures

Solana (SVM)

FeatureImplementation
Replay ProtectionRecent blockhash (300 blocks validity)
AuthorizationTransferChecked instruction
Fee Payer SafetyInstruction structure validation
Amount ValidationExact amount matching

TON

FeatureImplementation
Replay ProtectionWallet seqno (sequence number)
AuthorizationJetton transfer message
Address DerivationOwner + Jetton master validation

TRON

FeatureImplementation
Replay ProtectionReference block + expiration
AuthorizationTRC-20 transfer
Address RecoveryECDSA public key recovery

Reporting Security Issues

If you discover a security vulnerability, please report it responsibly:

  1. Email: security@t402.io
  2. Do not disclose publicly until patched
  3. Include detailed reproduction steps
  4. We will acknowledge within 48 hours
⚠️

Never share real private keys or sensitive credentials when reporting issues. Use testnet funds and test accounts only.

Security Audit Status

ComponentStatusAuditor
Smart Contracts (T402UptoRouter)Internal audit complete (0 Critical, 2 Medium)External audit pending
Protocol SpecificationInternal review completeExternal audit planned Q2 2026
Facilitator ServiceInternal review completeExternal audit planned Q2 2026
TypeScript SDKInternal review completeExternal audit planned Q2 2026
Go SDKInternal review completeExternal audit planned Q2 2026
Python SDKInternal review completeExternal audit planned Q2 2026
Java SDKInternal review completeExternal audit planned Q2 2026

Resources