Skip to main content
A complete analysis of TeQoin’s security architecture, threat model, and security guarantees.
TL;DR:TeQoin inherits Ethereum’s security through data availability on L1, fraud proofs for state validity, and economic incentives that make attacks unprofitable. Even with a malicious sequencer, user funds remain safe due to cryptographic proofs and decentralized verification.

🎯 Security Guarantees

What TeQoin Guarantees

Fund Safety

Your funds cannot be stolenEven with malicious sequencer

State Validity

All state transitions are validInvalid states are proven and reverted

Data Availability

All transaction data on L1Users can always reconstruct state

Censorship Resistance

Transactions cannot be censoredForce inclusion via L1

Liveness

System always operationalCan recover even if sequencer fails

No Custody

Self-custodialOnly you control your private keys

🏗️ Security Layers

Defense in Depth

1

Layer 1: Cryptographic Security

Foundation: Math and cryptography
Guarantees:
  • Only private key owner can sign transactions
  • Signatures cannot be forged
  • State roots cannot be faked
Attack resistance:
  • Requires breaking ECDSA (computationally infeasible)
  • Would need to break SHA-256 class hashes
2

Layer 2: Smart Contract Security

L1 contracts enforce rules
Guarantees:
  • Code is law (deterministic execution)
  • No admin keys can bypass rules
  • Audited by multiple firms
  • Battle-tested on Ethereum
Attack resistance:
  • Would need to exploit smart contract bugs
  • Multiple audits reduce risk
  • Time-tested patterns used
3

Layer 3: Fraud Proof Security

Invalid states are provably detected
Guarantees:
  • Any invalid state can be proven wrong
  • Proof verified on-chain (trustless)
  • Malicious sequencer slashed
  • Correct state restored
Attack resistance:
  • Would need all verifiers to collude
  • Economic incentive ensures verification
4

Layer 4: Economic Security

Rational actors stay honest
Guarantees:
  • Honest behavior is most profitable
  • Fraud is always caught (7-day period)
  • Penalties exceed any possible gain
Attack resistance:
  • Would require irrational economic behavior
  • Would need to sacrifice massive value
5

Layer 5: Ethereum L1 Security

Inherit Ethereum’s security
Guarantees:
  • L1 contracts cannot be manipulated
  • L1 data cannot be censored
  • L1 state is final
Attack resistance:
  • Would need to attack Ethereum itself
  • Requires 51% of validators (~$20B)

🎭 Threat Model

Attack Scenarios & Defenses

Attack: Sequencer tries to steal user fundsMethod:
Defense:
Result: ✅ Attack fails, attacker loses stake
Attack: Sequencer refuses to include user’s transactionsMethod:
Defense:
Result: ✅ Censorship impossible long-term
Attack: Sequencer stops producing blocks (DoS)Method:
Defense:
Result: ✅ System remains operational
Attack: All verifiers agree to ignore fraudMethod:
Defense:
Result: ✅ Attack requires bribing everyone (impossible)
Attack: Find bug in L1 smart contractsMethod:
Defense:
Result: ⚠️ Low risk but possible (mitigated heavily)
Attack: Attacker controls Ethereum consensusMethod:
Defense:
Result: ⚠️ Inherits Ethereum’s security assumptions

💰 Economic Security Analysis

Cost-Benefit for Attackers

What would attacks cost?Takeaway: All attacks are either impossible or economically irrational

🔐 Security Assumptions

What We Trust

We assume these are secure:ECDSA (secp256k1)
  • Used for signatures
  • Same as Bitcoin/Ethereum
  • No known attacks
Keccak-256 (SHA-3)
  • Used for hashing
  • Cryptographically secure
  • Collision resistant
Merkle Trees
  • State commitments
  • Mathematically proven
  • Tamper-evident
Risk: Cryptography is broken Likelihood: Extremely low (decades of research) Impact: All of crypto breaks (not just TeQoin)

🛡️ Security Best Practices

For Users

Secure Your Private Key

Critical:
  • Use hardware wallet (Ledger, Trezor)
  • Never share private key
  • Backup seed phrase securely
  • Use strong passwords

Verify Transactions

Before signing:
  • Check recipient address
  • Verify amount
  • Review contract interactions
  • Check network (L1 vs L2)

Use Official Interfaces

Only trust:

Start Small

Test first:
  • Send small amount initially
  • Verify it arrives
  • Then send larger amounts
  • Don’t risk everything at once

For Developers

Audit Your Contracts

Before mainnet:
  • Multiple security audits
  • Formal verification if possible
  • Bug bounty program
  • Test on testnet extensively

Handle Reorgs

L2 blocks can reorg:
  • Wait for L1 finality (7 days)
  • For soft finality, wait 5-10 blocks
  • Don’t assume instant finality
  • Handle reorg scenarios

Validate Inputs

Never trust user input:
  • Validate all addresses
  • Check amount bounds
  • Verify signatures
  • Sanitize data

Plan for Emergencies

Emergency procedures:
  • Pause mechanisms
  • Upgrade paths
  • Recovery procedures
  • Communication plans

📊 Security Comparison

TeQoin vs Other L2s

*Decentralization roadmap planned Key Takeaway: TeQoin has Ethereum-grade security through L1 data availability and fraud proofs

🔬 Formal Security Properties

Mathematical Guarantees

Nothing bad ever happensFormal property:
In English: For any state transition, either:
  1. It’s valid according to EVM rules, OR
  2. There exists a fraud proof proving it’s invalid
Result: Invalid states cannot persist
Something good eventually happensFormal property:
In English: For any transaction, either:
  1. It will eventually be included by sequencer, OR
  2. User can force inclusion via L1
Result: Transactions cannot be censored forever
All data is always availableFormal property:
In English: For every L2 block:
  • Transaction data exists on L1
  • Available to all participants
  • Cannot be hidden or deleted
Result: State can always be reconstructed

🎯 Security Guarantees Summary

What You Can Trust

1

Your Funds Are Safe

✅ Cannot be stolen by sequencer
✅ Cannot be frozen indefinitely
✅ Can always be withdrawn (7 days)
✅ Protected by Ethereum L1 security
2

State is Valid

✅ All state transitions follow EVM rules
✅ Invalid states are proven and reverted
✅ Economic incentive ensures verification
✅ Fraud proofs work automatically
3

Censorship Resistant

✅ Transactions cannot be censored permanently
✅ Can force inclusion via L1
✅ Can exit system anytime
✅ Sequencer slashed for censorship
4

Trustless

✅ Don’t need to trust sequencer
✅ Don’t need to trust verifiers
✅ Don’t need to trust TeQoin team
✅ Only trust math and economics

📚 Additional Resources

Fraud Proofs

How fraud detection works

Optimistic Rollup

Core technology explained

Sequencer Design

Block production system

Challenge Period

Why withdrawals take 7 days