--- title: Post-quantum ChainLocks image: /img/social/pq-local-verification.jpg description: How hash-based ChainLocks authenticate Sentries, finalize Core blocks, and attest Bitcoin checkpoints. sidebar_position: 5 --- import {ChainLockVerificationFigure} from '@site/src/components/ProtocolFigures'; Post-quantum (PQ) ChainLocks use hash-based keys for Sentry operators. Each Core node verifies the individual votes and checks whether the certificate’s target descends from the last locked block. [ChainLock design](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L27-L45) · [Network and release status](../intro/status.mdx) ## Why Core verifies the votes directly A full node can check the certificate using public keys and roster information from its validated history. The certificate includes all 801 signatures and their authentication material. It is about 1 MB. Every fifth Core block height is eligible, or about 12½ minutes apart at the 150-second mainnet block target. This gives relay and verification a predictable maximum certificate size for each eligible height. A recursively aggregated certificate could use less bandwidth and would add a proof producer and a proof system to finality. [Block target](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/kernel/chainparams.cpp#L140-L142) · [Certificate resource estimates](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L1565-L1567) · [Recursive aggregation](./comparison.mdx#direct-verification-and-recursive-aggregation) ## Which object does each cryptographic check protect? | Check | What it protects | | --- | --- | | AuxPoW | A Core block’s mining work and its connection to a Bitcoin-compatible parent header. [Merge-mining](./core.mdx#what-bitcoin-merge-mining-contributes) | | PoDA digest | The bytes of a particular publication. [Blob commitments](./data-availability.mdx#what-the-hash-commits-to) | | ChainLock | A Core block and its ancestry. [Certificate checks](#what-a-full-node-verifies) | | Spending signature | The authority to spend under an account or output’s rules. Ordinary NEVM accounts use secp256k1. [Separate smart-account experiment](./zksys.mdx#wallets-and-post-quantum-account-authorization) | | zkSYS validity proof | The batch state transition and its public inputs under the deployed verifier. [Execution and settlement proofs](./zksys.mdx#why-there-are-two-proof-stages) | ## Signing roles and keys A Sentry operator uses a long-lived SLH-DSA identity to commit to its child keys. It signs each scheduled finality vote with its assigned WOTS+ leaf. The full node links that vote to the eligible operator and roster slot using its own chain state. [Signing roles](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md) | Layer | Selected profile | Purpose | | --- | --- | --- | | Owner | NIST FIPS 205 `SLH-DSA-SHAKE-128s`. | Authorize registrar changes, choose a voting delegate, and approve initial operator registration or delayed recovery. | | Proposal funding voter | Independent `SLH-DSA-SHAKE-128s` key. | Sign proposal funding votes when authorized by the owner. The operator retains the trigger and non-funding vote roles. | | Operator | `SLH-DSA-SHAKE-128s`, with a 32-byte public key and 7,856-byte signature. | Authenticate the operator and its child-key root, service updates, peer identity, and active-key rotation or revocation. | | Scheduled vote | `SYS-SCHEDULED-WOTS+-SHAKE-N16-W16-H8-V1`, 704-byte inner signature. | Sign the statement assigned to one leaf of an epoch child key. This is a Syscoin profile built from hash-based components and subject to independent review before public deployment. | | Child-key authentication | 32-byte child public key plus a depth-16 path of 512 bytes. | Authenticate that child key against the operator's frozen root. A vote with its key and path occupies 1,248 bytes. | New registrations require an SLH owner proof of possession. Once a Sentry Node enrolls its SLH owner key, owner actions require that active key and version. An active SLH owner, an active funding vote key, and the relevant operator child root are required for Sentry payment eligibility. [Owner and voting migration](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L175-L235) · [Provider authorization checks](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/evo/providertx.cpp#L648-L731) The SLH identities are stateless. The scheduled WOTS+ signer needs durable state. The protocol derives its leaf from the signing slot. Each child key has 256 physical leaves, with 231 assigned to ChainLocks and four to payment audits. The other 21 leaves are invalid for signing. The signer reserves a leaf durably before signing and permits deterministic replay for the exact same message. Reorgs and crashes do not refund one-time leaves. Operating two copies of the same signer state or restoring a stale journal defeats the assumption that a leaf signs one distinct message. [FIPS 205](https://csrc.nist.gov/pubs/fips/205/final) · [Wire types](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_chainlock_types.h) · [Signer journal](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_signer_journal.cpp) Core’s SLH-DSA-SHAKE-128s identity profile uses a 32-byte public key and a 7,856-byte signature. The FIPS 204 lattice-based alternative ML-DSA-44 uses a 1,312-byte public key and a 2,420-byte signature. Core accepts the larger identity signature to keep operator authorization under hash-based assumptions. The more frequent scheduled votes use a separate WOTS+ key. [FIPS 205](https://csrc.nist.gov/pubs/fips/205/final) · [FIPS 204](https://csrc.nist.gov/pubs/fips/204/final) ## What a full node verifies ChainLocks use 288-block epochs and targets every fifth block. Local generation for a target at height `H` starts with five blocks of follow-on history, at `H + 5`. This signing delay governs local generation and is separate from the certificate validity rules. Four active rosters have 400 ordered slots each. A final certificate selects exactly three of them and contains exactly 267 authenticated signatures per selected roster, for **801 roster-slot signatures** total. An operator can appear in multiple rosters. Nodes derive roster membership, order, eligibility, and child-key roots from a fixed snapshot of the Sentry registry on the target’s history. [Schedule](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_chainlock_schedule.h) · [Roster derivation](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_quorum_builder.cpp) · [Certificate checks](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_chainlock_verify.cpp) A live share carries a statement identifier, packed slot, and authenticated signature. The receiver reconstructs the statement from its immutable signing context. The certificate includes the common statement once, the selected-roster mask and signer bitmaps, and the ordered signatures. A complete certificate is **1,001,572 bytes** (about 0.95 MiB). A compact live share is 1,282 bytes. An integration test exercises a full certificate through collection and verification. [Wire format and size accounting](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_chainlock_types.h#L760-L766) · [Full certificate integration test](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L3011-L3018) For one marked signer slot, the node looks up the member’s frozen child-key root, checks the supplied Merkle path, and derives the WOTS+ leaf assigned to this target height in that roster’s epoch. It reconstructs the message from the block statement and signer context, then checks the signature against that message and leaf. The long-lived SLH-DSA key authorized the root when the operator registered it. The 801 certificate signatures use WOTS+. Core checks the certificate structure and the target’s chain context before verifying signatures, then checks the chain context again before accepting the lock. [Per-slot verifier](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/llmq/pq_chainlock_verify.cpp#L1343-L1401) · [Verification order](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L1073-L1102) Before accepting a certificate, the node checks the signing authority for the target and its ancestry from the last accepted ChainLock. Within an unchanged 400-slot roster, two sets of 267 share at least 134 slots. Two choices of three out of the same four rosters share at least two rosters. The within-roster bound assumes at most 133 Byzantine slots per selected roster. Across differently composed rosters, safety also assumes a complete certificate reaches honest signers before they sign a conflicting branch in a later view. Finality can pause when quorum or state is unavailable. [Certificate checks and safety model](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L1073-L1134) ## Checkpoints and recovery A ChainLock statement carries a Bitcoin checkpoint cursor. At a scheduled candidate height `H`, the Syscoin block commits to a Bitcoin previous-block hash, `BTCPREV`, that must match the AuxPoW parent header. Signers independently check their Bitcoin headers view before signing an `ADVANCE`. A `KEEP` certificate preserves the cursor. The certificate attests to the signing quorum’s Bitcoin view. Consumers can validate a header proof and set their own Bitcoin confirmation policy. [Candidate binding and signer policy](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L1754-L1826) The only on-chain carrier for that candidate is at `H + 10`. A non-null receipt must name the exact certificate for `H`. Only a verified `ADVANCE` forwards a new Bitcoin hash to NEVM, and `KEEP` leaves the NEVM checkpoint unchanged. Missing certificate bytes can pause NEVM execution that depends on the checkpoint, while base Syscoin synchronization can continue under the bounded recovery rules. [Receipt and NEVM replay](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L1839-L1891) Payment audits are a separate certificate domain. Their compact receipts and probation commitment affect payment eligibility. Payment probation does not change the roster's signing authority. During recovery after pruning, a returning node can verify an exact certificate selected by a receipt on its fully replayed proof-of-work history. That bounded historical import relies on the replayed history for omitted roster transitions. A later certificate must still pass the normal forward-authorization checks, and historical import alone cannot advance finality. [Recovery and payment audit design](https://github.com/syscoin/syscoin/pull/609) ## Released behavior and migration Syscoin mainnet uses BLS ChainLocks. Migration to post-quantum ChainLocks starts from an authenticated block in the legacy history. [Network status](../intro/status.mdx) · [Migration parameters](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/consensus/pq_migration_config.h) 1. During preparation, Sentries can enroll operator keys and migrate owner authority from ECDSA to SLH-DSA. Registration continues after activation. 2. The new consensus rules begin at activation height `A`. Network parameters also specify the Bitcoin checkpoint receipt boundary and the signing schedules. 3. An upgraded node uses its existing validated data directory to authenticate the block at height `A−1`. A fresh or reindexed node needs a separate authenticated bootstrap path. A later release could provide an independently verified hash of that predecessor. Below `A`, Core replays legacy objects to reproduce state. It relies on the authenticated predecessor for legacy finality. Starting at `A`, the network applies the new authorization and receipt rules. [Activation and release gates](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/doc/pq-chainlocks.md#L2622-L2678) · [Predecessor authentication](https://github.com/syscoin/syscoin/blob/b3b4f643383a2149807a25fe38d26b5f058daa60/src/node/pq_activation_handoff.h)