Signature primitive
to verify one signature on one thread: 3,943 per second.
- Sign
- 278.83 ms
- Key generation
- 27.32 ms
- Sign over verify
- about 1,100×
The asymmetry suits a ledger: a signature is made once and verified by every node.
Menhir is Bitcoin with hash-based signatures: mining, addresses and signatures all rest on SHA-2. A measured regtest prototype.
Proof-of-work and addresses rest on SHA-256. Signatures rest on the secp256k1 elliptic curve, which Shor's algorithm solves. Most post-quantum coins swap the curve for lattices: a second, younger bet. Menhir removes the second bet instead of replacing it.
A hash-based signature is 16,224 bytes. Schnorr's is 64. Nothing else about a payment changes, so nothing else about its cost does.
| Shape | Bytes | vB | WU | Per block |
|---|---|---|---|---|
| 1 input, 2 outputs | 16,421 | 4,208 | 16,832 | 237 measured |
| 2 inputs, 2 outputs | 32,744 | 8,320 | 33,278 | 120 arithmetic |
| 2-of-2 leaf, 2 outputs | 32,701 | 8,278 | 33,112 | 120 arithmetic |
| Taproot key path (computed) | n/a | 154 | 616 | 6,491 computed |
Phase 1 measurements
Every transaction below was signed, mined into a block on a private regtest chain and read back. Timings come from one loaded machine and are upper bounds for it.
to verify one signature on one thread: 3,943 per second.
The asymmetry suits a ledger: a signature is made once and verified by every node.
payments fill a 4,000,000 WU block. The next one was rejected with bad-blk-weight.
The two implementations share no code: the node's is written on Bitcoin Core's hash functions, OpenSSL's is its own.
A full block validates in 11.0 to 18.0 ms. A block built to abuse the signature budget took 5.75 s.
Tapscript charges 50 units per signature check, a price set for Schnorr. One hash-based signature pays for about 340 checks. Not fixed in the prototype: it has to be repriced before any public network.
per year at most, with every block full.
A node that drops signatures buried under enough proof-of-work would keep about one hundredth of the chain.
a94c192393.237 payments per block against about 6,491. Deploying this parameter set means choosing: the witness discount, the weight limit, smaller parameter sets, or aggregation.
At 253.59 µs per check a block could carry many times more signatures before validation neared one second. Bandwidth and storage bind first.
With 99.16 % of block bytes in witnesses, pruning buried witnesses changes the storage cost by two orders of magnitude. Its trust model is an open question.
The validation weight charge is the case found here. Dust thresholds and fee policies sized for 100 vB spends are next.
output OP_2 <32-byte merkle root> leaf 31 01 <48-byte key> ac witness [signature] [leaf] [control] bytes 16,224 51 1 control c1 key id 01 = SLH-DSA-SHA2-192s
Thesis, consensus decisions and the phase 1 contract.
The signature primitive, a chain with post-quantum outputs only, the P2MR spend path, and the numbers on this page.
Network parameters, per-block retarget, wallet descriptors, and the capacity decision: weight, discount, interval and the price of a signature check.
Compact hash parameter sets of roughly 3 to 4 kB per signature, witness pruning, fuzzing and an external audit.
Fair launch and reproducible binaries. No date is announced.
No Menhir network exists. There is no token and nothing is for sale. The source code is not public yet. Nothing on this site is an offer of any asset.