Skip to content
codenlightenPublic

About

Experimental C++ cryptocurrency node with ML-DSA-65 (FIPS 204) signature integration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

2,866 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AumCoin: Satoshi Vision + Post-Quantum Security βš›οΈπŸ›‘οΈ

Status: experimental. Claims in this README about scale, speed, security or readiness are design goals or earlier drafts unless they point to a test, measurement or audit report. No independent audit is claimed.

A Litecoin-derived node with ML-DSA-65 (FIPS 204) signature integration (experimental)

Network Status Post-Quantum OP_CODES

License: MIT Bitcoin: 0.6.x Litecoin: 0.6.3c OpenSSL: 3.x liboqs: 0.10.1

🎯 Project Vision

AumCoin builds on Litecoin: all 15 disabled OP_CODES are restored, artificial scaling limits are removed, and ML-DSA-65 (FIPS 204) signatures are integrated for post-quantum signing.

Milestone (Jan 6, 2026): a multisignature address using ML-DSA-65 signatures was created.

Why this matters: As quantum computers advance, traditional ECDSA signatures are expected to become vulnerable. AumCoin supports hybrid classical + post-quantum signatures and ML-DSA multisignature.

✨ Key Features

πŸ›‘οΈ Post-quantum signatures

  • ML-DSA-65 (FIPS 204): NIST-approved post-quantum signatures
  • Hybrid keys: ECDSA + ML-DSA for dual security
  • OP_CHECKMLDSASIG: Consensus-level quantum verification
  • 4 RPC commands: Full wallet support for quantum-safe addresses
  • Backward compatible: Existing addresses still work
  • 25 tests passing: Comprehensive validation suite

βœ… All Original OP_CODES Enabled

  • 15 disabled OP_CODES restored: CAT, SUBSTR, LEFT, RIGHT, INVERT, AND, OR, XOR, 2MUL, 2DIV, MUL, DIV, MOD, LSHIFT, RSHIFT
  • Full implementations intact: Code was already there, just blocked
  • Powerful scripting: Build complex smart contracts and on-chain applications

βœ… Massive Scalability

  • 128 MB blocks (was 1 MB) - 128x increase
  • No script size limits - complex contracts welcome
  • 10 KB push values (was 520 bytes) - 20x increase
  • True P2P cash - thousands of transactions per block

βœ… Proven Foundation

  • Litecoin 0.6.3c base - Simple, auditable codebase (~32k lines)
  • OpenSSL 3.x compatible - Modern cryptography stack
  • Scrypt POW - ASIC-resistant mining, different from BTC/BSV
  • 2.5 minute blocks - 4x faster than Bitcoin
  • MIT License - Clean, fork-friendly (unlike BSV)

Post-Quantum Signatures (experimental)

Phase 3 Complete βœ…

What we built (Jan 2, 2026):

  1. ML-DSA-65 Integration (Phase 3.1)

    • Wrapper around liboqs 0.10.1
    • 16 comprehensive tests
    • 1952-byte public keys, 3309-byte signatures
    • 3.6x faster than ECDSA
  2. Consensus Opcodes (Phase 3.2)

    • OP_CHECKMLDSASIG (0xb3) - Verify ML-DSA signatures
    • OP_CHECKMLDSASIGVERIFY (0xb4) - Verify + fail
    • Soft fork compatible (old nodes see as NOP)
  3. Hybrid Key Format (Phase 3.3)

    • ECDSA + ML-DSA dual signatures
    • 9 tests, 100% pass rate
    • Serialization/deserialization support
    • Backward compatible with ECDSA-only
  4. Wallet RPC Commands (Phase 3.4)

    • getnewmldsaaddress - Generate quantum-safe address
    • signmessagemldsa - Post-quantum message signing
    • verifymessagemldsa - Signature verification
    • gethybridkeyinfo - Key inspection

Phase 4 Complete βœ…

Quantum-Resistant Multisignature (Jan 2-6, 2026):

  1. Multisig Script Builder (Phase 4.1) βœ…

    • CreateMLDSAMultisigScript() - M-of-N quantum multisig
    • Supports 1-of-1 through 15-of-15 configurations
    • P2SH compatible (standard 23-byte addresses)
    • 10 comprehensive tests (100% passing)
  2. Multisig RPC Command (Phase 4.2) βœ…

    • addmultisigmldsaaddress - Create quantum multisig address
    • Validates all keys have ML-DSA components
    • Automatic wallet integration
    • Account management support

Jan 6, 2026: ML-DSA multisignature address created.

  • Created a multisignature address using ML-DSA signatures on testnet
  • Address: 2MtxuRKifrWcqRZAFA5MpJuHem7Ji827hy9 (2-of-3 ML-DSA-65)
  • ML-DSA keys persist across daemon restarts (wallet serialization fixed)
  • Keystore integration complete - hybrid keys fully functional
  • Ready for production testing with real funds

Use Cases Enabled:

  • 🏦 Exchange cold storage (3-of-5 executives)
  • πŸ›οΈ DAO treasuries (5-of-9 board members)
  • 🀝 Escrow services (2-of-3 buyer/seller/arbiter)
  • πŸ’Ό Corporate wallets (M-of-N approval workflows)
  1. Transaction Workflow (Phase 4.3) βœ…

    • createmultisigmldsatx - Create unsigned transactions
    • signmldsatx - Add ML-DSA signatures incrementally
    • Signature aggregation with threshold tracking
    • Transaction immutability (signatures bound to tx hash)
  2. Complete Demo (Phase 4.4) βœ…

    • End-to-end escrow scenario (Alice/Bob/Carol)
    • 2-of-3 multisig workflow demonstration
    • Example command sequences
    • See PHASE_4.4_DEMO.md

Security Guarantee

πŸ”’ Hybrid signatures provide dual protection:

  • ECDSA protects against classical computers (today)
  • ML-DSA-65 protects against quantum computers (future)
  • Both must verify for transaction validity

This means your AumCoin transactions are secure against:

  • βœ… Current classical attacks
  • βœ… Future quantum attacks (Shor's algorithm)
  • βœ… Side-channel attacks (deterministic ML-DSA)

Performance Optimization πŸš€

ML-DSA Signature Cache (Phase 5.3 - Jan 3, 2026) βœ… NEW!

AumCoin implements intelligent caching for ML-DSA signature verification:

  • 5x Performance Boost: Cached verifications are ~5x faster than fresh verifications
  • Thread-Safe: Concurrent signature validation across multiple cores
  • Configurable Size: Default 10,000 entries (~50MB), adjustable via -maxmldsacachesize
  • DoS Protection: Random eviction policy prevents cache manipulation
  • Real-Time Metrics: Monitor cache performance with getmldsacachemetrics RPC

Performance Numbers:

Uncached Verification: ~0.5ms
Cached Lookup:         ~0.1ms (5x faster!)
Cache Hit Rate:        >80% expected during block validation

Why This Matters:

  • Faster block validation during sync
  • Reduced mempool processing time
  • Improved node performance under load
  • Critical for scaling quantum-safe transactions

RPC Command:

./aumcoind getmldsacachemetrics
# Returns:
# {
#   "cache_size": 1523,
#   "cache_hits": 4891,
#   "cache_misses": 1234,
#   "hit_rate": 79.85,
#   "total_verifications": 6125,
#   "total_verify_time": 3062.5,    # milliseconds
#   "avg_verify_time": 0.50         # ms per verification
# }

πŸš€ What's New in This Fork

Post-Quantum + Satoshi Vision (v0.6.3c-PQ)

Before (Original Litecoin 0.6.3c):

// These OP_CODES were blocked
if (opcode == OP_CAT || opcode == OP_MUL || ...)
    return false; // DISABLED

After (AumCoin):

// All OP_CODES now enabled!
// Full implementations active

Impact:

  • βœ… String manipulation (CAT, SUBSTR, LEFT, RIGHT)
  • βœ… Bitwise operations (INVERT, AND, OR, XOR)
  • βœ… Full arithmetic (MUL, DIV, MOD, shifts)
  • βœ… Complex smart contracts possible
  • βœ… On-chain data processing

πŸ“Š Comparison Table

Feature AumCoin Bitcoin Litecoin BSV
All OP_CODES βœ… 15 restored ❌ Disabled ❌ Disabled βœ… Enabled
Block Size βœ… 128 MB ❌ 1-4 MB ❌ 1 MB βœ… 4 GB
Script Limits βœ… Removed ❌ 10 KB ❌ 10 KB βœ… Removed
License βœ… MIT βœ… MIT βœ… MIT ⚠️ Mixed
POW Algorithm βœ… Scrypt SHA-256 βœ… Scrypt SHA-256
Block Time βœ… 2.5 min 10 min βœ… 2.5 min 10 min
Codebase βœ… Simple Complex Complex Complex
Post-Quantum πŸ”„ Planned ❌ No ❌ No ❌ No

πŸ—οΈ Litecoin Core Features (Retained)

  • 2.5 minute block targets - Fast confirmations
  • Scrypt POW - ASIC-resistant, GPU/CPU friendly
  • 84 million total coins - 4x Bitcoin's supply
  • Subsidy halves every 840k blocks (~4 years)
  • 50 coins per block initial reward
  • 2016 blocks to retarget difficulty

πŸ› οΈ Build Instructions

Dependencies (Ubuntu/Debian)

sudo apt-get update
sudo apt-get install build-essential libboost-all-dev libssl-dev libdb++-dev

Compile

cd src
make -f makefile.unix

Run

./aumcoind

οΏ½ Quick Start: Quantum-Resistant Features

Generate Quantum-Safe Address

# Generate a hybrid ECDSA + ML-DSA address
./aumcoind getnewmldsaaddress "quantum-savings"
# Returns: AumAddress123... (quantum-resistant!)

Sign Message with Post-Quantum Cryptography

# Unlock wallet first
./aumcoind walletpassphrase "your-password" 60

# Sign with ML-DSA-65
./aumcoind signmessagemldsa "AumAddress123..." "Hello Quantum World"
# Returns: Base64-encoded ML-DSA signature (3309 bytes)

Verify Quantum-Resistant Signature

./aumcoind verifymessagemldsa "AumAddress123..." "signature..." "Hello Quantum World"
# Returns: true (signature verified!)

Check Key Security Status

./aumcoind gethybridkeyinfo "AumAddress123..."
# Returns:
# {
#   "address": "AumAddress123...",
#   "ecdsa_pubkey_size": 33,
#   "ecdsa_compressed": true,
#   "has_mldsa": true,
#   "is_hybrid": true,
#   "mldsa_pubkey_size": 1952,
#   "quantum_resistant": true
# }

οΏ½πŸ“– Documentation

πŸ§ͺ Quick Tests

Test OP_CAT (String Concatenation)

# Start the client
./aumcoind -testnet

# Create a script with OP_CAT
# Concatenates "Hello" + "World" = "HelloWorld"
# This was impossible in standard Bitcoin/Litecoin!

Test Post-Quantum Signatures

# Run comprehensive test suite
cd src
make -f makefile.unix test_aumcoin USE_UPNP=
./test_aumcoin --run_test=hybrid_key_tests

# Result: 9/9 tests passing βœ…

See TESTING.md for 50+ test cases covering all restored OP_CODES.

πŸ—ΊοΈ Roadmap

  • Phase 1: OP_CODE Restoration βœ… COMPLETE (Jan 2025)
  • Phase 2: OpenSSL 3.x Upgrade βœ… COMPLETE (Jan 2026)
  • Phase 3: ML-DSA-65 Integration βœ… COMPLETE (Jan 2, 2026)
    • Phase 3.1: liboqs + ML-DSA wrapper (16 tests)
    • Phase 3.2: OP_CHECKMLDSASIG opcode
    • Phase 3.3: Hybrid key format (9 tests)
    • Phase 3.4: RPC wallet commands
  • Phase 4: Quantum-Resistant Multisig βœ… COMPLETE (Jan 2, 2026)
    • Phase 4.1: Multisig script builder (10 tests, 100% passing)
    • Phase 4.2: addmultisigmldsaaddress RPC command
    • Phase 4.3: Transaction signing workflow (createmultisigmldsatx, signmldsatx - 10 tests, 100% passing)
    • Phase 4.4: End-to-end multisig demo (complete escrow scenario documentation)
  • [-] Phase 5: Network Launch & Governance 🚧 IN PROGRESS (Jan 3, 2026) - 78% COMPLETE!
    • Phase 5.1: Network architecture design
    • Phase 5.2: Testnet launch (140+ blocks mined)
    • [-] Phase 5.3: Network validation (7/9 complete) πŸ”₯ ACTIVE
      • Mining implementation (140+ quantum-resistant blocks)
      • Transaction testing (ML-DSA transaction on the test network)
      • RPC integration fixes (multisig parameter parsing)
      • ML-DSA signature cache with performance metrics 🎊 NEW!
      • [-] Multisig testing (awaiting coinbase maturity)
      • Multi-node P2P testing
    • Phase 5.4: Governance framework design
  • Phase 6: Smart Contract Templates & Tooling

πŸ€” Why Fork Litecoin Instead of Bitcoin?

  1. Implementations Already Present: Litecoin 0.6.3c has all OP_CODE implementations intact
  2. Simpler Codebase: ~32k lines vs modern 100k+ - easier to audit and modify
  3. Scrypt POW: Different mining ecosystem, ASIC-resistant
  4. Faster Blocks: 2.5 minutes vs 10 minutes
  5. Clean License: No BSV licensing complications
  6. Proven Stability: Litecoin's 10+ year track record
  7. Modern Crypto: OpenSSL 3.x + liboqs for quantum resistance

🎯 Why Not BSV?

BSV has similar goals (restore OP_CODES, big blocks), but:

  • ❌ Mixed/unclear licensing
  • ❌ Political/legal controversies
  • ❌ Same POW as Bitcoin (SHA-256)
  • ❌ Complex modern codebase
  • ❌ No quantum-resistant cryptography

AumCoin gives you the technical benefits without the baggage + quantum security.

πŸ“œ Philosophy: Satoshi's Original Vision

From the Bitcoin whitepaper:

"A purely peer-to-peer version of electronic cash..."

Original Bitcoin had rich scripting capabilities for:

  • βœ… Complex contracts
  • βœ… On-chain computation
  • βœ… Programmable money
  • βœ… Unlimited scaling

These were disabled in 2010 due to early security concerns. Modern understanding shows they can be safe with proper limits (operation counts, value sizes). We restore them with BSV-inspired philosophy but Litecoin's proven foundation.

πŸ”’ Security Status

Phase 1 Critical Hardening: βœ… COMPLETE

  • βœ… Compiler hardening: PIE/ASLR, stack protection, NX stack, RELRO
  • βœ… OP_CAT allocation safety: Size checked before concatenation
  • βœ… BigNum DOS protection: 4096-bit limit on OP_MUL/DIV/MOD operands
  • βœ… Comprehensive security analysis document added

What's Protected:

  • βœ… 201 operation limit per script (prevents CPU DOS)
  • βœ… 10 KB push value limit (prevents memory DOS)
  • βœ… 4096-bit BigNum limit (prevents arithmetic DOS)
  • βœ… Scrypt POW rate limiting (prevents spam)
  • βœ… Standard signature verification (ECDSA secp256k1)

What's Changed:

  • ⚠️ Larger blocks require more bandwidth/storage (128MB vs 1MB)
  • ⚠️ Complex scripts use more CPU for validation
  • ⚠️ Arithmetic operations (MUL/DIV/MOD) are computationally expensive

Phase 2 Roadmap (2-3 months):

  • ⏰ OpenSSL 3.x migration (eliminates 50+ CVEs)
  • ⏰ Boost 1.84+ upgrade (current stable)
  • ⏰ BerkeleyDB β†’ LevelDB migration (better reliability)
  • ⏰ Continuous fuzzing infrastructure
  • ⏰ External security audit

Current Status: βœ… TESTNET READY | ⚠️ Phase 2 required before mainnet with financial value

See SECURITY_ANALYSIS.md for complete details.

🀝 Contributing

This project is in active development. Areas needing help:

  • Testing restored OP_CODES in production scenarios
  • Performance optimization for large blocks
  • Post-quantum cryptography research
  • Documentation improvements
  • Security auditing

πŸ“„ License

MIT/X11 License

  • Original Bitcoin: Copyright (c) 2009-2010 Satoshi Nakamoto
  • Original Litecoin: Copyright (c) 2011-2012 Litecoin Developers
  • AumCoin Fork: Copyright (c) 2025 AumCoin Developers

See COPYING for details.

πŸ™ Acknowledgments

  • Satoshi Nakamoto - Original Bitcoin vision and implementation
  • Litecoin Developers - Scrypt POW and stable codebase
  • BSV Community - Inspiration for OP_CODE restoration philosophy
  • Lumen Bridge - AI agent platform for development acceleration
  • NIST - Post-quantum cryptography standards

πŸ”— Resources


🎊 Project Status

Status: experimental; see the note at the top.

Component Status
Genesis Block βœ… Mined & Validated
OP_CODE Restoration βœ… 15/15 Complete
128MB Block Scaling βœ… Complete
Network Identity βœ… Complete
Docker Build βœ… Functional
Documentation βœ… 3,500+ lines
Lumen Bridge βœ… Integrated

Genesis Hash: 5828800007714e96f32995e76076b990a1211cf264f2eae74b5ac8be32222950

See STATUS.md for complete technical details.


οΏ½ Related Projects

AumCoin is part of a three-layer blockchain ecosystem:

@smartledger/keys - Cryptography Foundation

  • Post-quantum key management SDK for JavaScript/TypeScript
  • ML-DSA-44/65/87 implementations (NIST FIPS 204 compliant)
  • 3.6x faster than ECDSA for total operations
  • Used by AumCoin for Phase 3 (post-quantum integration)
  • Repository: github.com/codenlighten/lumenkeys

Boundless Trust - Related project

  • Related blockchain project (mainnet launched Dec 5, 2025)
  • ML-DSA-44 native signatures for quantum resistance
  • 39 native transaction types (no smart contracts, purpose-built)
  • E2 Identity system with KYC levels 0-4 for compliance
  • Products: MuniBonds, ProofSwarm, Sentinel Quantum, FilmForge

When to Use What?

Use Case Recommended Platform
Anonymous P2P payments AumCoin (privacy-focused)
Complex smart contracts AumCoin (15 restored OP_CODES)
High-throughput apps AumCoin (128 MB blocks)
Crypto SDK/library @smartledger/keys (post-quantum)
Related project Boundless
SEC-regulated securities Boundless (Reg D/S compliant)
Municipal bonds Boundless (MuniBonds product)

Interoperability Coming: Cross-chain atomic swaps (AumCoin ↔ Boundless) are planned for Q3 2026, enabling seamless value transfer between privacy and compliance layers.

See ECOSYSTEM_COMPARISON.md for comprehensive comparison.


�🚨 Disclaimer

This software is ready for experimental deployment.

  • βœ… Genesis block mined and validated
  • βœ… Core functionality tested
  • βœ… Build system operational
  • ⚠️ External security audit recommended
  • ⚠️ Start with testnet for initial experiments
  • ⚠️ No warranty or guarantee of any kind

Launch responsibly. Test thoroughly.


Building programmable, scalable electronic cash with post-quantum signatures. πŸš€

About

Experimental C++ cryptocurrency node with ML-DSA-65 (FIPS 204) signature integration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages