Quantumsafe

Docs · How post-quantum signing works

How post-quantum signing works

A one-time hash signature and a Merkle path, attached to the launch. The pool is still a Montra pool.

The identity in this tab

Derivation starts from a personal signature by your Elysium wallet over a fixed message that includes the domain quantumsafe.fun. An optional passphrase is stretched with scrypt before the seeds are derived. The secret seed stays in the tab. It is not sent to Montra and it is not written into the token.

From those seeds the tab builds 256 Winternitz one-time keys and a height-8 Merkle tree. The public values are the Merkle root and a public seed. The pq1 address is derived from those two values. Identities made for an older domain do not verify against this tree.

WOTS, one leaf, one signature

Each leaf is a Winternitz one-time signature with SHA-256 and w = 16: 64 message nibbles and 3 checksum nibbles, 67 hash chains. The public key of a leaf is the end of those chains. A signature reveals an intermediate element on each chain. Verification finishes the chains. Because the revealed elements would let a second, different message be forged, the tab refuses to spend the same leaf twice.

HashSHA-256, 32 bytes
Winternitz w16
Chains67
WOTS signature2,144 bytes
Treeheight 8, 256 leaves
Auth path8 sibling hashes
Scheme stringWOTS(w=16,SHA-256)+Merkle(h=8)

Which leaf signs

Leaf 0 can be burned in this tab from the identity page. On Montra, the launch leaf is the next free leaf in the tab. The preview labels that leaf. The illustration on the page is a small diagram of one path; the on-chain path is the eight sibling hashes in the attestation, not the picture.

The diagram always draws one example path so the shape stays readable. The leaf number in the label is the real next leaf when an identity is loaded. The picture is not a rendering of all 256 leaves.

Where the signature is stored

On Montra, the wallet’s launch call includes a profile. socials.extra is a JSON string produced by frozenAttestation. It wraps the attestation under the key quantumsafe.

socials.extra shape

{
  "quantumsafe": {
    "version": 1,
    "scheme": "WOTS(w=16,SHA-256)+Merkle(h=8)",
    "pqAddress": "pq1…",
    "root": "…",
    "pubSeed": "…",
    "height": 8,
    "messageHash": "…",
    "image": "…",
    "signature": { "leaf": 1, "wots": "…", "auth": ["…", "…"] }
  }
}

auth has eight hashes, one per level of the height-8 tree. wots is the one-time signature. messageHash is the launch digest for the predicted token, the creator wallet, the name, the ticker, the image, and the leaf. Montra freezes that string on the token. The metadata upload used for the name and image does not keep this signature; the extra field does.

Launch post-quantum safe tokens on Montra.