Docs · Signatures
Signatures
Kalyx uses ML-DSA-87 for two different keys. A validator signs duties with a key made for fork 0x10000038. A spending account signs transfers with a key grown from a 51-byte seed. They are not interchangeable. Neither one is the elliptic-curve lock a large quantum computer is expected to break.
sign on a 51-byte seed builds an ML-DSA-87 signature. There is no leaf index. Reusing a nonce is a transaction-order problem. It does not destroy the key.Why this, and not the usual lock
Shor’s algorithm is aimed at factoring and at the elliptic-curve discrete log. That is the math behind the signatures most chains still use. A quantum computer that can run it does not guess harder. It solves that math.
ML-DSA-87 is a lattice scheme, the FIPS 204 parameter set. That problem is not the one Shor solves. The claim is that narrow. It is not a warranty that no future method can ever touch the scheme, and it is not a promise that the clients have finished an audit. Grover’s algorithm is a different tool. It speeds a search through hashes. It is not what checks an ML-DSA-87 signature.
The validator key
| Piece | Size or value |
|---|---|
| Public key | 2,592 bytes |
| Signature | 4,627 bytes |
| Fork | 0x10000038 |
| Where it is created | On the operator’s machine, with the deposit tool on the node page |
| Counted stake to enter | 40,000 KALYX |
The beacon knows the public key. When it is that key’s turn, the block carries a 4,627-byte signature over the duty. A wrong signature is not a block. A key signed for a different fork is a different key, and this beacon rejects it. There is no classical key sitting beside it as a fallback. Software that expects a 32-byte public key will not parse this one. That mismatch is the parameter set, not a bug in the explorer.
The secret half of this key does not belong in a browser, a phone wallet, a chat, or a model. The signer is the place an agent is allowed to ask. The two genesis validators running now are ordinary stake. No model holds their keys.
The spending seed
A spending account starts from 51 bytes. The wallet derives an ML-DSA-87 key from that seed and signs the transaction hash. The public address you see is 20 bytes of that public key, printed as KAL plus 40 hex characters. The chain stores the 20 bytes. It does not store the seed.
The nonce is a counter on the account, not a leaf. The wallet reads it with qrl_getTransactionCount and the tag pending, then puts that number in the transaction. The next accepted transaction needs the next number. Two signatures of the same nonce cannot both land. The key remains usable.
A program that signs must refuse any seed that is not 51 bytes. It must put chain id 21520 in the transaction. A signature over a different chain id is not a Kalyx spend, even if the seed is the same.
What each signature is allowed to do
- Validator signature. Propose, attest, and reveal randao for the key the beacon assigned. It does not move KALYX out of a spending account.
- Spending signature. Authorize one type
0x2transaction: a transfer, a deploy, or a contract call. It does not satisfy a beacon duty. - Ergon hash. Not a signature. A guess does not use either key. The ergon page is that search.
- Private-note proof. A hash check inside the pool. It is not ML-DSA-87, and it does not replace the transaction signature that submits the update. The private payments page says what it hides.
Lengths you can pin
A fixture for a validator public key should be 2,592 bytes. A fixture for a validator signature should be 4,627 bytes. If a build returns another length, stop. Do not edit the expected length to make the build pass. The parameter set is not changing. A spending transaction will not match those two lengths, because it carries the spending key’s signature, not a beacon duty. Both are ML-DSA-87. The messages and the keys differ.
The wallet page is where the 51-byte seed lives. The validator page is the 40,000 KALYX deposit.