Year 1 · Module 113 · Patchouli Knowledge / Suika Ibuki / Remilia Scarlet

Engineering the Next Generation of Cryptocurrency

Post-quantum cryptography, adversarial mathematics and distributed monetary systems.

Can you build a cryptocurrency that survives the death of its own cryptography?

Written opening lesson and Session 01, Chapters 1–3 videos available. Nine sessions planned; remaining videos, implementations and testnet are not yet available. No real money, token sale or investment advice. All experiments use synthetic keys and valueless test assets.

Patchouli teaches the mathematics, Suika Ibuki co-lectures on adversarial reasoning, and Remilia Scarlet examines monetary systems and governance. Koakuma checks the evidence. Cirno returns for adversarial testing in Session 09.

Nine-session design challenge

SessionSubjectDeliverable
01How Bitcoin could die
Audit ownership, public-key exposure, hashing, consensus and governance; distinguish price collapse from cryptographic failure.
Threat model and vulnerability matrix
02Quantum-resistant wallets
Compare ML-DSA and SLH-DSA; benchmark key generation, signing, verification and storage.
Keys, locks and storage using maintained libraries
03No single point of failure
Require independent signatures over the same canonical transaction; examine common-mode failures and downgrade resistance.
Two independently implemented hybrid transaction verifiers
04Consensus after quantum computing
Compare proof of work and proof of stake, resource concentration, finality and quantum speedups.
Consensus simulator
05When mathematics betrays you
Design versioned policies, precommitted recovery keys, activation rules and migration before compromise.
Migration state machine
06Economics of computational power
Model issuance, fees, spam, verification costs and adversarial resource concentration.
Economic stress simulator
07Privacy after the quantum revolution
Compare confidentiality, linkability and proof assumptions; avoid claiming existing zero-knowledge schemes are quantum safe.
Privacy threat model and toy prototype
08Build the cryptocurrency
Integrate deterministic validation, networking, wallets, consensus and migration.
Local multi-node testnet
09Destroy the cryptocurrency
Inject simulated primitive failures, malformed transactions, partitions and upgrade disputes; document recovery limits.
Reproducible adversarial test report

1. Before the lecture — How Bitcoin could die

Start here even if you already know how computers work. The challenge is to identify which assumptions must remain true for ownership, supply and settlement to remain trustworthy.

Reading A — Ownership is a verification rule Further reading (PDF)

Bitcoin nodes validate spending conditions, not personal identities. ECDSA and Schnorr signatures use secp256k1. Early pay-to-public-key outputs and Taproot outputs expose a public key immediately; hash-locked outputs reveal their key when spent, potentially before confirmation. A practical discrete-log attack could threaten exposed keys, but a falling price is not evidence of such an attack. Shor's algorithm threatens elliptic-curve cryptography on a sufficiently capable fault-tolerant quantum computer; Grover's algorithm offers a different, quadratic search advantage under idealised assumptions.

Reading B — Separate the failure domains Further reading (PDF)

Signature failure can enable forged authorisations; hash failure depends on whether collision, preimage or second-preimage resistance fails. Consensus failure can permit censorship or reorganisations without necessarily permitting arbitrary theft. Wallet compromise can bypass otherwise sound mathematics. None of these automatically implies the others.

Reading C — Design for replacement Further reading (PDF)

ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) are signature standards based on module lattices and hash functions respectively. Both schemes and the ledger depend on hash functions, so their independence is limited. ML-KEM (FIPS 203) establishes shared secrets; it is not a transaction signature. Requiring both independent signatures over the same domain-separated transaction may preserve authorisation if one fails, provided the other remains secure and implementation and policy cannot be bypassed. Larger signatures increase bandwidth and verification costs. Losing either required key or encountering a verifier that rejects valid signatures can prevent spending. Migration after all authorisation mechanisms fail cannot distinguish owners from forgers.

Research update — 30 November 2026

Claude’s independent review reports a theoretical quantum algorithm for certain module-lattice problems, not a practical break of standardized parameters. The original papers were not inspected by the reviewer; this is a provisional account, not evidence that Bitcoin or NIST standards have been broken.

Warm-up exercises

  1. Identify the difference between signing and encryption.
  2. Explain why a public key is not a private key.
  3. Name two distinct ledger failure domains.
Check warm-up answers

1. Signing authenticates a message; encryption protects confidentiality. 2. A public key is intended for disclosure, whereas the private key enables secret operations. 3. Signature forgery and consensus reorganisation are distinct examples.

2. Lecture — How Bitcoin could die

Session 01 cast: Patchouli Knowledge, Suika Ibuki and Remilia Scarlet. Japanese audio with English subtitles. Chapters 1–3 are available below; the remaining chapters are in production.

Chapter 1 — Introduction

Japanese audio · English subtitles · 60 fps

Lecture handouts — Chapter 1

Review the two lecture slides. Select any image to open the full-resolution PNG in a new tab.

The Morning After
The Morning After · Save PNG
What Was Shown
What Was Shown · Save PNG

Chapter 2 — What a coin trusts

Japanese audio · English subtitles · 60 fps

Lecture handouts — Chapter 2

Review the two lecture slides. Select any image to open the full-resolution PNG in a new tab.

Seven Failure Domains
Seven Failure Domains · Save PNG
Software Incidents
Software Incidents · Save PNG

Chapter 3 — The exposed key

Japanese audio · English subtitles · 60 fps

Lecture handouts — Chapter 3

Review the two lecture slides. Select any image to open the full-resolution PNG in a new tab.

Exposed or Hidden Key
Exposed or Hidden Key · Save PNG
Quantum Estimate
Quantum Estimate · Save PNG

Watch the lecture in sequence

All currently available chapters play consecutively in this player. Use the buttons to move between chapters.

3. Laboratory — Cirno breaks the signatures

This is a logical policy simulator, not cryptographic software. Assume an attacker has no legitimate keys, can forge any failed signature, and cannot bypass the verifier.

Simulated failures

Availability check: if either legitimate key is lost, AND spending fails; OR can still spend with the remaining key but is vulnerable if either scheme is forgeable. A shared verifier bug can freeze or compromise both paths. Hash-function failure is outside this simulator.

Laboratory tasks

  1. Test all four failure combinations with each of the three policies.
  2. Record the twelve results and identify which policies survive one failure.
  3. Explain why the simulator does not model availability or verifier bugs.
Expected observations

With neither failure all policies reject a forger. With lattice failure only, AND rejects while OR and lattice-only accept. With hash failure only, AND and lattice-only reject while OR accepts. With both failures all accept. The model assumes an intact verifier and does not simulate legitimate signing failures.

4. Tutorial — Koakuma’s library

Written tutorial available; video pending. Attempt each problem before revealing the worked solution.

Problem 1 — Exposed public keys

Compare an unspent output exposing a public key with one committing only to a public-key hash. Assume a practical discrete-log attack but no hash preimage attack.

Worked solution

The exposed key is directly vulnerable. The hash commitment may delay exposure until spending, but does not guarantee safety during broadcast or against previously exposed or reused keys.

Problem 2 — Suika’s signature policy

For both, either and lattice-only policies, determine whether an attacker can forge a spend when only the lattice signature fails. Repeat for both failures.

Worked solution

With only lattice failure: both rejects, either accepts, lattice-only accepts. With both failures all three accept. AND protects authorisation under the stated independent-failure model but can reduce availability.

Problem 3 — Remilia’s bandwidth bill

Assume ML-DSA-87 (category 5) has a 2592-byte public key and 4627-byte signature; SLH-DSA-SHA2-128s (category 1) has a 32-byte public key and 7856-byte signature. A transaction reveals both keys and signatures plus 200 other bytes. The unequal categories are a provisional bandwidth trade-off. Calculate its size and the maximum number fitting in a hypothetical 1,000,000-byte block, ignoring block overhead.

Worked solution

2592 + 4627 + 32 + 7856 + 200 = 15307 bytes. Floor(1000000/15307) = 65 transactions. This is a teaching model, not a Bitcoin block-weight calculation.

Problem 4 — Consensus versus ownership

An attacker controls enough consensus resources to reorganise recent blocks but cannot forge signatures. Can they spend arbitrary coins? What can they do?

Worked solution

Not under unchanged validation rules. They may censor, reorder or reverse recent payments, including double-spending their own funds, depending on the consensus model.

Problem 5 — The dormant wallet

A wallet has not upgraded. Its only signing scheme becomes forgeable. Can a migration transaction signed with that scheme prove who the original owner was?

Worked solution

No. A forger can produce the same evidence. A previously committed independent recovery credential may help if it remains secure and the protocol recognises it.

Problem 6 — Cross-chain replay

Two test networks accept identical transaction bytes and keys. What should the signing transcript commit to?

Worked solution

A canonical transaction, chain identifier, protocol/policy version and relevant spend references and outputs. Nodes must enforce the same encoding and reject invalid or already spent inputs.

Problem 7 — The shared verifier bug

Both signature algorithms are sound, but a verifier accepts a malformed transaction without checking either signature. Does hybrid cryptography save the ledger?

Worked solution

No. The shared validation path is a common-mode failure. Test malformed encodings, fail-closed behaviour and deterministic validation across nodes.

5. Revision and reference sheet

ConceptRule / reminder
ECDSA / SchnorrBitcoin signatures use secp256k1; discrete-log hardness is central.
Shor / GroverShor threatens discrete logs on sufficiently capable quantum hardware; ideal Grover search uses O(√N) queries.
ML-DSA / SLH-DSAFIPS 204 lattice-based signatures / FIPS 205 stateless hash-based signatures.
ML-KEMFIPS 203 key establishment, not transaction signing.
AND / ORAND requires every signature; OR requires any one. Under independent failures AND resists one forgery; OR does not.
Transaction sizeB = payload + sum of public key and signature sizes + other encoding overhead.
Block capacityfloor(available bytes / transaction bytes), for uniform sizes.
ConsensusOrders valid transactions; does not replace ownership verification.
MigrationCommit recovery credentials before failure; enforce activation and prevent downgrade.
Domain separationBind signatures to chain, purpose, policy and canonical transaction.
Hash securityCollision, preimage and second-preimage resistance are distinct properties.

Explain without looking

  1. Why is a price crash not proof of a cryptographic breach?
  2. Why require two signatures rather than accept either?
  3. Why can migration be too late?
  4. Why is quantum mining not equivalent to quantum signature forgery?
  5. What is a common-mode failure?
  6. What is the cost of hybrid signatures?
Revision answers
  1. Market prices do not demonstrate a reproducible forgery or mathematical attack.
  2. A single broken scheme cannot satisfy an AND policy if the other remains secure.
  3. Once all accepted credentials are forgeable, signatures alone cannot distinguish owners from attackers.
  4. They attack different computational problems and security properties.
  5. A shared weakness, such as a verifier bug, that defeats otherwise independent defences.
  6. Additional bytes, verification work, risk of frozen funds and key management; measure actual implementations.

6. Mastery assessment

Target: 8/10 (80%). Retry freely. Also complete the laboratory and written tutorial; the quiz alone is not a full assessment.

Next session

Session 02 — Quantum-resistant wallets (planned).

Research references

Reference identifiers for independent verification: NIST FIPS 203, 204 and 205; Bitcoin BIP 340 and BIP 341; Shor (1994), Algorithms for quantum computation; Grover (1996), A fast quantum mechanical algorithm for database search. The essential introductory reading is embedded above. Further chapter handouts are planned. Additional references for verification: CIRG Statement 1 (30 November 2026, as reported in the independent review); arXiv:2603.28846 (March 2026, resource estimate); BIP 360 (draft status to verify); NIST SP 800-208.

Final project

Publish a reproducible local testnet, specification, benchmark results and failure-injection report. Use established libraries, never invent production cryptographic primitives. Record failures rather than hiding them. No production deployment is implied.