Public-pair signing after refreshing masks and commitment digests #
Barbosa et al., Figure 7, construct an accepting-transcript simulator
from the full pair (A,t). Here the forger receives the rounded FIPS public-key bytes and
retains its quantum register across queries and classical signing requests. In the compared
hybrid every attempt draws an independent ideal mask and digest. A norm or hint rejection
leaves the raw table unchanged. A signature or Algorithm 29 exhaustion writes the new digest
at the full commitment input. This implementation chooses the minimum limits permitted by
[NIST24a], Appendix C, Table 3, of 814 signing attempts and 221 challenge-expansion bytes.
The exact comparison below starts after those replacements. Bounding the cost of refreshing actual seeded masks and digests in the device's prior quantum state is a separate game hop.
A write at a commitment input leaves the complete bounded expansion of every digest unchanged. The FIPS input lengths separate these roles at all three parameter sets.
One raw commitment write retained when a signing attempt terminates its request.
- request : SigningQuery
The measured request that caused the write.
High-order commitment coefficients of this attempt.
Actual untagged SHAKE256 commitment input.
- digest : FixedBytes (digestBytes s)
Digest installed at this address.
A signature, or the public error following expansion exhaustion.
Chronological signing writes starting at base. Each address contains the message
representative read from the current table using the public-key hash stored at setup.
- initial {s : Level} {base : Xofs} {tr : List Byte} : History s base tr [] base
No prefix has been changed.
- append {s : Level} {base : Xofs} {tr : List Byte} {past : List (TerminalSigningWrite s)} {G : Xofs} (previous : History s base tr past G) (q : SigningQuery) (w : Fin s.params.k → Fin 256 → ℤ) (d : FixedBytes (digestBytes s)) (r : Option (List Byte)) (x : List Bool) (address : x = commitmentInput s w (G.representativeFromTr tr (formatMessage q.message q.context))) : History s base tr (past ++ [{ request := q, point := w, address := x, digest := d, reply := r }])
(G.writeCommitment x d.toList)
Append the measured request's terminal write and use the resulting table thereafter.
Every terminal commitment update leaves the encoded FIPS public key's raw SHAKE256 stream unchanged. This includes fatal signing requests.
If the ambient oracle has no representative equal to the stored public-key hash on a terminal signing request, every representative read, including final verification, sees the ambient stream. Requests may have been chosen after earlier writes and coherent queries.
A signing experiment at the original FIPS seeded law of (ρ,A,t). A setup error
returns false. The continuation receives the matrix and full vector before public-key rounding.
Draw the FIPS seed and form the unrounded pair directly from the two expansions of Algorithm 6. This is the same experiment as generating and decoding the private and public key bytes.
The final shared XOFs, public bytes, forgery and successful signing log, together with writes on fatal expansions and the complete residual quantum device.
- trial : SignedMatrixTrial s
Public outcome checked by the FIPS fresh-digest forgery predicate.
Public-key hash held constant during signing.
- writes : List (TerminalSigningWrite s)
Chronological terminal writes, including expansion failures.
Every recorded address is the actual input at that point in the execution.
- stillExhausted (w : TerminalSigningWrite s) : w ∈ self.writes → w.reply = none → self.trial.xofs.sampleInBall s w.digest.toList = none
Every fatal digest still exhausts Algorithm 29 on the final shared table.
- signed (w : TerminalSigningWrite s) : w ∈ self.writes → ∀ (sig : List Byte), w.reply = some sig → List.take (digestBytes s) sig = w.digest.toList ∧ { context := w.request.context, message := w.request.message, signature := sig } ∈ self.trial.log
Successful writes have the installed digest prefix in the real signing log.
Device after all coherent queries, measurements and signing calls.
An accepted forgery's digest differs from every terminal write on which a previous call returned the expansion error, even if other signing calls changed the table in between.
A winning fresh digest differs from every digest installed by the simulator. Successful writes appear in the signed log; fatal writes remain failed Algorithm 29 inputs.
Run the public-pair signing simulator on an externally supplied (A,t) and matrix seed.
Only the rounded encoded key reaches the forger. Every terminal commitment write is visible to
all subsequent raw queries and to the final verifier.
The external public pair determines the rounded key given to the forger and the stored key hash used by every request, including after earlier raw writes.
The refreshed signing hybrid initialized from generated byte keys. The signing service uses their decoded private fields, its stored public-key hash and the expanded matrix. It draws an ideal mask and digest at each attempt and retains terminal commitment writes.
For a generated FIPS key, both services induce the same joint law of the forgery, residual device, successful signing log, terminal writes and final shared XOFs. The pair on the public side is the matrix and full public vector of the generated key.
Fresh-digest winning game for the ideal-mask, fresh-digest signing hybrid: replace its secret-dependent byte signing service by the public-pair simulator. Both sides first sample the finite raw SHAKE streams and the FIPS key seed. Final verification runs on the actual XOFs left by signing. This equality preserves the fatal errors and the 814-attempt cutoff.
A changed message representative in a real output of the public-pair simulator yields a terminal request whose representative in the original oracle equals the original public-key hash. The search checks fatal and successful writes in order.