LPsLux Proposals
Post-Quantum Cryptography
LP-10602

The Validator Link

Draft

The post-quantum handshake two validators run before they exchange a frame, stated byte for byte so three implementations cannot each have their own

Category
Core
Created
2026-09-08

Abstract

Two validators bind their node identities to a key-encapsulation session before either sends a frame. The link is NODE_PQ_HANDSHAKE_V1: an ML-DSA-65 signature over a running transcript in each direction, an ML-KEM encapsulation in the responder's direction, and a session key derived from both.

Every byte of it is given here. An implementation that agrees with this document interoperates with every other; one that agrees with its own reading of another implementation interoperates until the day the two readings differ, which is a day nobody schedules.

Motivation

A handshake is where two programs decide they are talking to each other. Two programs that each define one are not two implementations of a network, they are two networks that happen to open the same port. The failure is silent from the inside: each side's own test suite passes, and the two only meet in production, where the connection is refused with no explanation either side can give.

Specification

Messages

Fixed-width fields are written in place. lp(x) is x preceded by its length as a big-endian u32.

INIT, initiator to responder:

version   u8        0x01
profile   u8
chain     [32]byte
scheme    u8        ML-KEM-768 or ML-KEM-1024
node      [20]byte
lp(mldsa_pub)
lp(kem_pub)
lp(sig)

RESP, responder to initiator:

version   u8        the initiator's, echoed
profile   u8        the initiator's, echoed
chain     [32]byte  the initiator's, echoed
scheme    u8        the initiator's, echoed; the responder MUST NOT lower it
node      [20]byte
lp(mldsa_pub)
lp(kem_ct)
lp(sig)

What is signed

The initiator signs INIT with its signature omitted:

prefix_init = version ‖ profile ‖ chain ‖ scheme ‖ node ‖ lp(mldsa_pub) ‖ lp(kem_pub)

The responder signs the whole INIT it received, then its own fields with its signature omitted:

init_bytes  = prefix_init ‖ lp(sig_init)
prefix_resp = init_bytes ‖ version ‖ profile ‖ chain ‖ scheme ‖ node ‖ lp(mldsa_pub) ‖ lp(kem_ct)

Both are ML-DSA-65 in DETERMINISTIC mode. The context is the role, and it is part of the signed message:

initiator   "NODE_PQ_HANDSHAKE_V1/initiator"
responder   "NODE_PQ_HANDSHAKE_V1/responder"

Role and version live in the context so a captured signature is not a valid signature in the other direction, nor under a later version of this link.

The session

resp_bytes  = version ‖ profile ‖ chain ‖ scheme ‖ node ‖ lp(mldsa_pub) ‖ lp(kem_ct) ‖ lp(sig_resp)
binding     = init_bytes ‖ resp_bytes ‖ profile ‖ chain ‖ mldsa_pub_init ‖ mldsa_pub_resp
transcript  = TupleHash256(binding), customisation "NODE_TRANSCRIPT_V1", 384 bits
secret      = ML-KEM.Decapsulate(kem_ct)
aead_key    = cSHAKE256(scheme ‖ secret ‖ transcript), function name "KEMDerive",
              customisation "NODE_AEAD_V1", 256 bits

profile, chain and both identity keys appear in binding even though each is already inside init_bytes or resp_bytes. A disagreement about which chain or which profile the two are on then changes the key, and the first frame fails to open, rather than being carried by an encoding that drifted.

aead_key is what every subsequent frame on the connection is sealed under.

Refusals

A peer refuses, in this order and before any signature is verified:

  • a version that is not 0x01;
  • under a profile that forbids classical key encapsulation, a scheme that is one — checked first so a peer cannot spend the verifier's time on a bogus signature;
  • a chain or profile that is not the one it serves;
  • a field whose length is not the length its scheme defines.

Then it verifies the signature, and refuses if it does not check under the context for the sender's role.

Rationale

The context strings are not decoration. They are the whole of the replay argument: without the role in the context, a responder's signature is a well-formed initiator's signature over the same bytes.

Deterministic signing makes a handshake reproducible, which is what lets this document have test vectors at all.

The length prefix is four bytes big-endian everywhere, including on fields whose length is fixed by the scheme. One rule is cheaper to implement three times than two rules are.

Backwards Compatibility

None is offered. This is the link; an implementation that speaks something else is not on the network.

Test Cases

A vector file of complete handshakes with fixed keys, and for each: the two transcript prefixes, the two canonical messages, both signatures, the binding, the transcript hash and the derived key. An implementation reproduces every value or it does not conform. A vector with one byte changed must be refused, and a signature made under any other context must be refused.

Security Considerations

The link authenticates node identities and derives the frame key; it does not say who is a validator. That is the committee (LP-10603), and a node that has completed this handshake with a peer outside the committee has a secure channel to somebody who does not get a vote.

Copyright and related rights waived via CC0.