Ottereus: Post-Quantum Peer-to-Peer Programmable Money
Abstract. We propose a peer-to-peer system for programmable money designed to resist a quantum computer from its first block. Ownership is proved by post-quantum signatures, with a second signature scheme available without a fork if the first becomes weak. Transactions operate on accounts and can make payments or run contracts. Proof-of-work uses Scrypt and can be shared with Litecoin through merged mining. Nodes choose the chain with the most cumulative work and communicate over encrypted connections. Blocks commit to transactions, signatures, execution results and state. Contracts use the Ethereum Virtual Machine with post-quantum signature checks in place of elliptic-curve functions. Fees follow demand, while gas prices are based on the cost of checking work on a stated machine. Block limits are set per second of block time. A permanent block reward pays for security after the initial reward reductions.
1. Introduction
A peer-to-peer system for programmable money needs a way to prove ownership without trusting a party to keep the accounts. Digital signatures provide that proof. A holder signs a transaction with a private key, and nodes check it against the corresponding public key. The elliptic-curve signatures in wide use today have a limit: a large enough quantum computer could derive the private key from the public key and move the coins.
A coin is exposed when its public key is visible on a chain. The key becomes visible when it is used to spend. Some older forms of address also put the public key on the chain. Over 6 million bitcoin, worth hundreds of billions of dollars, are in outputs with exposed public keys [10]. Ethereum accounts reveal their key with their first transaction and face the same threat. NIST plans to phase out elliptic-curve signatures by 2035 [5].
One answer is to change the signature scheme of a running chain. That leaves the holders with the work of moving their coins to the new scheme. Coins whose owners are gone cannot move. Their security remains tied to the old signatures. We propose instead to start with signatures that a quantum computer is not known to break.
We need peer-to-peer programmable money with proof-of-work as in [1], and with smart contracts. We also need its signatures, hashes and connections designed to resist a quantum computer from the first block. We set out the signature and transaction rules first, then the work, network, execution and incentive rules by which nodes maintain the chain.
2. Signatures
Ownership must remain provable when the public key used to check a signature is visible. Elliptic-curve signatures provide that proof against present attacks but not against a large enough quantum computer. We use two post-quantum signature schemes, both standardized by NIST at its highest security level, level 5.
The default is FN-DSA-1024, also called Falcon [4]. Its public key is 1,793 bytes and its signature is 1,280 bytes. At level 5 it has the smallest signatures of the NIST post-quantum schemes. FN-DSA remains a draft standard, FIPS 206. If the final standard changes its encoding, we add the final form under a new scheme identifier. That is a change to the rules that all nodes must adopt. Existing keys remain valid.
The backup is ML-DSA-87, also called Dilithium [3]. It is a final standard, FIPS 204. Its public key is 2,592 bytes and its signature is 4,627 bytes. Both schemes are valid from the first block. Every key and signature starts with a one-byte scheme identifier. The identifier is 0x01 for FN-DSA and 0x02 for ML-DSA. Any other identifier is invalid.
A single-key address is a 48-byte SHA3-384 hash of the key with its scheme identifier. It is bound to exactly one key of one scheme. The key itself appears on the chain when a transaction first spends from the address. The owner may then store it in the state so later spends do not reveal it again. A multisignature address is a hash of an M-of-N description of its keys, which may mix schemes. An address can therefore be used to receive funds before the key is on the chain.
We use SHA3 [6] for every hash the system defines itself: addresses, block hashes, transaction identifiers, the state tree and signature hashes. Keccak-256 appears only inside the EVM, and hash locks use SHA-256. Each hash has a tag naming its use, so that two uses cannot be confused. Addresses use SHA3-384 to keep 192-bit collision security against quantum search. Block hashes, transaction identifiers and the state tree use SHA3-256. The encrypted peer connection uses the SHA-256 functions of its protocol, HKDF-SHA256 and HMAC-SHA256.
A signature chain shows the ownership rule. An owner signs a transaction. The next owner, and the nodes checking the transaction, can verify that signature against the key. The scheme identifier tells the checker which signature rules apply.
3. Changing Schemes
A signature scheme can turn out weaker than believed. An implementation can also have a flaw. On most chains, replacing a scheme calls for a hard fork and a long migration. Even after the rules change, holders must move their coins.
We make ML-DSA valid from the first block. If FN-DSA or its implementation is shown to be weak, a holder can sign an ordinary transfer with the FN-DSA key and pay everything to a new ML-DSA address. The transfer uses rules already accepted by nodes. Moving the coins needs no fork.
Keys are never rotated in place. An account cannot change its key. A holder moves coins to a new address instead, using an ordinary transaction. A multisignature account may mix schemes. Its keys may, for example, include one FN-DSA key and one ML-DSA key.
This does not remove the need to move. Coins left on an FN-DSA address whose owner never moves them depend on FN-DSA staying secure. The availability of ML-DSA does not change the key bound to an existing address.
We also consider a failure of the proof-of-work function, Scrypt. Nodes carry a dormant second proof-of-work, SHA3-256, already written and tested. Turning it on is a hard fork done by a new release. Until then, every block must use Scrypt. Merged mining stops from the height at which SHA3-256 is turned on, since no other chain mines SHA3.
4. Transactions
A transaction must identify the funds it spends and prevent an old payment from being accepted again. A system can track unspent outputs, but we use accounts instead. An account holds a balance and a counter called a nonce. The nonce rises by one with every ordinary transaction the account sends. Settling a hash-locked payment, by claim or refund, does not use or change the nonce. Accounts are never deleted, so the counter never repeats and an old transaction can never be replayed.
An ordinary transaction names the sender and the nonce. It also gives a window of block heights in which it is valid, the most it will pay for gas, and its payload. Hash-locked settlements and the coinbase carry no sender, nonce or validity window. The window can extend at most 40,320 blocks, one week, ahead. The signature covers a hash of the genesis block's hash and the whole transaction body, except that a hash-lock claim leaves out the preimage. A transaction signed for one chain is therefore never valid on a chain with a different genesis block. A fork that shares the genesis can accept the same transactions, and all local regtest chains share one genesis.
An address is a hash rather than the key itself, so the sender reveals the key in the transaction the first time. The sender may request, in a signed flag, that the key be stored on the chain. Storage costs once. Later transactions then carry only the signature. A stored FN-DSA key pays for itself after about 45 transactions. Without storage, each transaction reveals the key again and pays for its bytes.
One transfer can pay up to 1,000 recipients. Each payment line may carry a 64-bit memo, such as a customer number at an exchange. An account may set a flag that refuses direct native payments without a memo. This lets the receiving account require the information it uses to distinguish payments. The chain does not check the flag for EVM payments, whether direct, through contracts or in tokens. Wallets check it for direct EVM payments and plain token transfers they send.
A multisignature account uses M of N keys, with N from 2 to 7. A transaction carries exactly M signatures, never more. The number of signature checks is therefore bounded by the account's rule and by the limit on N.
We also provide hash time-locked payments. These use plain SHA-256 hashlocks so they can match payments on Bitcoin, Litecoin and other chains. They support exchanges in which both sides complete or neither does. The timeout can be up to 30 days. The use of SHA-256 here permits matching with those chains; the hashes the system defines remain SHA3.
5. Proof-of-Work
Nodes need to agree on transaction order without relying on a party to select the chain. A signed transaction proves authorization, but a signature alone does not decide between competing histories. We use proof-of-work as in [1]. Nodes search for a value that makes a block's hash low enough. The chain with the most total work is correct.
The proof-of-work function is Scrypt [7], with the same parameters as Litecoin: N = 1024, r = 1 and p = 1. The same machines and pools that mine Litecoin can therefore mine this chain. A block may be mined alone, without a parent chain, or through merged mining [8].
In merged mining, a miner working on a Litecoin block places the hash of a block of this chain in the Litecoin coinbase transaction. If the Scrypt hash of the Litecoin header meets this chain's target, it also proves this chain's block. The same work counts on both chains, so the miner can add this chain with no extra electricity.
The proof carries the Litecoin coinbase, a Merkle branch to the Litecoin header, and the 80-byte header. Only the work counts. The Litecoin header need not be a valid Litecoin block. Dogecoin uses the same scheme, so the same work can count for Litecoin, Dogecoin and this chain at once.
Merged mining does not give the chain all of the parent chain's hashpower by itself. Its strength depends on the share that takes part. Until many Litecoin miners include this chain, an attacker with a modest share of Litecoin's hashpower could outpace the honest chain.
6. Network
Nodes receive transactions and blocks at different times. A node cannot rely on every other node seeing the same message first. Proof-of-work provides the basis for choosing among branches, while the network carries the transactions and blocks that nodes check.
We run the network in the following steps:
- Transactions are broadcast.
- Each node collects transactions into a block.
- Nodes search for proof-of-work, alone or through merged mining.
- A node that finds proof-of-work broadcasts the block.
- Nodes accept the block only if every transaction is valid.
- Nodes show acceptance by building the next block on its hash.
Nodes take the chain with the most cumulative work. A pruned or snapshot node treats a reorganization deeper than its stored history as a special case. On a tie, a node keeps the first block it saw until one branch grows. A message arriving first does not by itself settle a lasting conflict between branches.
Network traffic also needs protection. Encrypting it with a key exchange vulnerable to a quantum computer would leave recorded traffic open to later decryption. Every connection between nodes is encrypted after Bitcoin's BIP324 design [9]. The key exchange combines ML-KEM-1024 [2] with X25519, so traffic recorded today cannot be decrypted later by a quantum computer.
There is no unencrypted mode. Encryption does not hide packet sizes or timing. By default peers are not authenticated, as in Bitcoin. An operator may set pre-shared keys to authenticate links between its own nodes. These limits distinguish protection of the traffic contents from proof of a peer's identity.
7. Blocks and Difficulty
Blocks must arrive often enough to record transactions, but the work required for a block must also respond to changes in hashpower. A fixed difficulty would not maintain a fixed average interval as hashpower changes. We adjust difficulty every block and set the average block time at 15 seconds.
The block time is fixed in the rules for launch. A later change, whether for scale or another reason, is for the network's users to agree on as an upgrade or a fork.
The block header is 249 bytes. It commits to the previous block, the transactions, their signatures separately, the state after the block, the receipts, the block's access list, the gas and data used, the base fee, the time, the target and the nonce. These commitments let nodes check what the block contains and what state results from it.
Difficulty uses ASERT [11]. The target moves exponentially with how far the last block's time was from 15 seconds, with a half-life of one hour. If hashpower doubles, difficulty catches up after about 240 blocks, or one hour. A block's time must be later than the median time of the previous 11 blocks.
Here is the target for block , and is the previous target. and are the timestamps of the previous two blocks. is 15 seconds and is 3,600 seconds. Each hour the chain falls behind schedule doubles the target and halves the difficulty. Each hour ahead halves the target. The rule uses exact integer arithmetic in the implementation; the formula shows its meaning.
Here is the work assigned to a block and is that block's target. Nodes take the valid chain whose summed work is largest.
Contract execution may need state entries beyond those named by the transactions. Reading each entry from disk only when execution reaches it can require reads one after another. Each block therefore lists those additional entries in an access list committed by its header. A node can read them from disk in parallel while the block runs. A block that reads an entry it did not list is invalid. A block that lists an entry it did not read is also invalid.
The state after each block is the root of a sparse Merkle tree using SHA3. A node can prove any balance against a header. The proof connects the balance to the state commitment, rather than requiring the balance to be accepted on another node's word.
8. Contracts
Programmable money needs contracts as well as transfers. Existing contracts and tools depend on the Ethereum Virtual Machine, but some of its built-in functions rely on elliptic curves. Keeping those functions would leave contract checks tied to the signature threat we set out to avoid.
We run contracts on the Ethereum Virtual Machine [12], unmodified, using revm pinned to an exact version with Ethereum's Osaka rules. Contracts written in Solidity or Vyper run unchanged in most cases. We remove every built-in function that relies on elliptic curves: ecrecover, the BN254 and BLS12-381 curve operations, KZG and P-256. Built-ins that check FN-DSA and ML-DSA signatures replace them, along with one that checks an account's signature.
Every account also has a 20-byte address for the EVM. Behind it is fixed system code that accepts payments and answers the standard signature check, EIP-1271, with the account's post-quantum signature. When checking a signature, the code makes at most one read-only call to a fixed system address. It can never store, move value or create anything. An account's balance therefore falls only through transactions its owner signs.
Contract authors must account for the removed functions. A contract that calls ecrecover, such as one using EIP-2612 permit for token approvals by signature, must use the post-quantum check instead. Gas costs also differ from Ethereum's. A contract that hard-codes gas amounts may run out of gas. Ethereum tools can connect through a signing proxy that signs with post-quantum keys.
9. Fees and Limits
Nodes must check transactions and store their data. A fee that ignores either execution or bytes would not reflect both uses of the block. We charge for gas as in Ethereum's EIP-1559 [13], and we make the base fee follow whichever is fuller, gas or bytes.
The price per unit of gas has two parts. The network sets a base fee, and the sender sets a tip. The base fee aims at half-full blocks. When a block is fuller than the target, the base fee rises by up to 12.5%. When it is emptier, the fee falls by up to 12.5%. It never falls below 10 gwei, or 10 billionths of an OTTE.
Here and are the parent block's gas and data used. and are the gas and data targets, each half its limit. is the parent's base fee, is the next base fee, and is 10 gwei. is the greater of the two usage ratios. A full block has and raises the base fee by 12.5%. A nearly empty block has close to 0 and lowers the base fee by about 12.5%, subject to the floor.
We burn 80% of the base fee. The miner receives the other 20% and the whole tip. The protocol takes no share of the tip, so it gives users no extra reason to pay miners outside the chain. Burning removes coins for good. More use of the network therefore removes more coins.
Here is the gas used by the transaction, is the base fee per unit of gas, and is the tip per unit of gas. is the total paid, is the amount removed, and is the amount paid to the miner. The price is capped by the sender's maximum fee.
Block limits are set per second and multiplied by 15 seconds. The gas limit is 20 million a second, or 300 million per block. The data limit is 155 KiB a second, or 2,380,800 bytes per block. At four blocks a minute, full blocks would produce:
2,380,800 bytes × 4 × 60 × 24 × 365.25 ≈ 5.01 TB a year
At the half-full target, the amount is about 2.5 TB a year.
Gas prices for CPU work, state reads and some writes follow one rule. Most other gas costs are Ethereum's, but new state costs three times Ethereum's, and some writes are not yet priced by this rule. A block made entirely of any one kind of work priced by this rule must be checked within 10% of the block time, or 1.5 seconds, on a stated minimum machine. That machine has 8 modern cores, 32 GB of memory and a datacenter NVMe drive. The base rate is 200 gas per microsecond an operation takes on that machine, before adding margins for CPU and doubling disk costs. The 10% share is not final. We prefer 5% if affordable, which would double those prices. Prices are not final until measured again before launch.
A payment from an account with a stored key costs about 1,467 bytes and 74,725 gas. For typical payments, bytes rather than gas limit throughput. The resulting figures are about 108 payments or 93 token transfers a second.
10. Incentive
Proof-of-work needs miners to keep spending work on the chain. Fees can pay miners, but fees vary. If the block reward ends and security depends on fees alone, the chain can become unstable. We retain a constant reward after the initial reductions, as with the tail emission in Monero.
The first transaction in a block creates new coins, as in [1]. It pays the miner new coins plus tips and 20% of the base fees. In the first era one eighth of the new coins goes to a treasury, as explained later. There is no premine and no sale of coins. The genesis block pays nothing. One OTTE is 1018 base units, as with ether.
The reward starts at 12.5 OTTE a block. It halves every 8,400,000 blocks, about four years, three times. The successive rewards are 12.5, 6.25 and 3.125 OTTE. From then on the reward stays at 1.5625 OTTE a block forever.
Here is the block height and is the new-coin reward at that height. The floor gives the number of completed 8,400,000-block intervals, while the minimum stops the exponent at 3. The rule gives 12.5, 6.25, 3.125 and then 1.5625 OTTE forever.
In the first era, 8,400,000 × 12.5 = 105 million OTTE. The total reaches about 157.5 million after the second era and about 183.75 million at the end of the third, just before year 12. Thereafter, 1.5625 × 2,103,840 blocks a year is about 3.29 million OTTE a year. That is under 1.8% of the supply at year 12 and a smaller share each year after.
The following table shows coins issued before any burning and the new coins in each year as a share of issued coins.
| Year | Coins issued | New coins that year, as a share |
|---|---|---|
| 12 | 183.82 million | 1.79% |
| 20 | 210.12 million | 1.56% |
| 30 | 242.99 million | 1.35% |
| 50 | 308.74 million | 1.06% |
| 100 | 473.10 million | 0.69% |
The share falls every year but never reaches zero.
The permanent reward keeps paying for security. Burned fees offset it, so the supply in use can grow more slowly or even shrink. The reward and the burn are separate parts of the rules: one creates coins for the block, while the other removes coins paid as base fees.
Here is the new-coin reward at block height . The sum is over the block's transactions, with the gas used by each transaction and the base fee per unit of gas. Coins enter only through the coinbase. The change in supply is at most minus the base-fee burn. Coins also leave when a contract created and destroyed in one transaction holds value, which is burned. A miner may claim less than allowed, in which case the unclaimed coins are never issued.
Here is the base fee at which the burn equals the reward, is the reward for the block, and is the gas used in the block. After the halvings .
A block holding about 1,618 ordinary payments (the data limit) uses about 120.9 million gas, so b* = 1.5625 / (0.8 × 120.9 million gas) ≈ 16.2 gwei. At the half-full gas target (150 million gas) b* ≈ 13.0 gwei. At the 10 gwei floor such blocks burn about 0.97 OTTE and 1.2 OTTE, less than the 1.5625 created. So the supply shrinks only when demand keeps the base fee above about 13 to 16 gwei. This is arithmetic, not a promise about demand.
From block 1 through block 8,399,999, one eighth of the reward goes to a treasury address to fund development. That is 1.5625 OTTE a block, about 13.1 million OTTE in all. It is paid as the coinbase's first output. The treasury is to be a multisignature address. After that era nothing goes to it.
11. Calculations
A recipient needs to know how much work should follow a payment before treating it as settled. Seeing a transaction in one block does not prevent an attacker from working on a competing chain. We use the analysis of [1] §11 unchanged.
An attacker with a share q of the hashpower tries to build a longer chain in secret to take back a payment. The probability P that the attacker ever catches up from z blocks behind falls exponentially with z. The rules do not let the attacker create coins or take coins that were never the attacker's.
Following [1], let be the probability an honest node finds the next block, the probability the attacker finds the next block, and the probability the attacker ever catches up from blocks behind.
While the honest nodes find blocks, the attacker's expected progress is:
Here is the expected number of blocks found by the attacker while the honest nodes find blocks.
The chance that the attacker can still catch up is:
Here is the probability of catching up after the honest nodes have found blocks, is the number of blocks the attacker has found in that time, and is the factorial of . is the base of natural logarithms. Rearranging the sum gives [1]:
The symbols have the same meanings as in the preceding formula. We computed the table below from this last formula.
Merged mining changes which hashpower we count. The value q is the attacker's share of the hashpower working on this chain, not the attacker's share of Litecoin's hashpower. Each Litecoin miner who includes this chain lowers q for everyone else.
The 15-second block interval also changes the wait. A given number of blocks passes four times faster than at one minute a block. The safety per block is the same; what matters is the share q. Because difficulty changes every block, a miner who stamps a block earlier makes it slightly heavier. Against an attacker, we count N confirmations as worth N − 1.
| Attacker share q | Blocks z for P < 0.1% | Wait at 15 s a block |
|---|---|---|
| 0.10 | 5 | 1.25 min |
| 0.15 | 8 | 2 min |
| 0.20 | 11 | 2.75 min |
| 0.25 | 15 | 3.75 min |
| 0.30 | 24 | 6 min |
| 0.35 | 41 | 10.25 min |
| 0.40 | 89 | 22.25 min |
| 0.45 | 340 | 85 min |
Wallets count a payment settled after 40 blocks, about 10 minutes. From the same formula, at 40 blocks an attacker with q = 0.30 succeeds with probability about 0.00001, or 1 in 100,000. The table also shows the limit of a fixed wait: the required number of blocks rises as the attacker's share rises.
12. Conclusion
We need programmable money without trusted parties that stays safe against quantum computers. We use signatures designed to resist quantum computers, with a backup scheme that holders can use without a fork. We share proof-of-work with Litecoin miners while allowing blocks to be mined alone. We use accounts and contracts compatible with Ethereum tools, with post-quantum checks in place of elliptic-curve functions. Fees follow demand, the main gas prices follow measured cost on a modest machine, and block limits are set per second of block time. A permanent small reward continues to pay for security. Nodes accept what proof-of-work and the rules show, and any later change to the rules is for the network's users to agree on.
References
[1] S. Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System," 2008.
[2] NIST, FIPS 203, "Module-Lattice-Based Key-Encapsulation Mechanism Standard," 2024.
[3] NIST, FIPS 204, "Module-Lattice-Based Digital Signature Standard," 2024.
[4] NIST, FIPS 206 (draft), FN-DSA (Falcon) digital signature standard.
[5] NIST, IR 8547 (initial public draft), "Transition to Post-Quantum Cryptography Standards," 2024.
[6] NIST, FIPS 202, "SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions," 2015.
[7] C. Percival, "Stronger Key Derivation via Sequential Memory-Hard Functions," 2009.
[8] Bitcoin Wiki, "Merged mining specification."
[9] "BIP 324: Version 2 P2P Encrypted Transport Protocol."
[10] Glassnode, "Measuring Bitcoin's Quantum-Exposed Supply," 2026.
[11] freetrader, J. Toomim, C. Culianu, M. Lundeberg, "ASERT Difficulty Adjustment Algorithm (aserti3-2d)," 2020.
[12] G. Wood, "Ethereum: A Secure Decentralised Generalised Transaction Ledger."
[13] V. Buterin et al., "EIP-1559: Fee market change for ETH 1.0 chain," 2019.