Files
lens/scripts/kat/refresh_ristretto255_t3.json
zeekay 2c63fd34fc lens: classical curve threshold kernel — sister to Pulsar
Lens is the curve-based threshold signing kernel for Lux. It is the
classical analogue of Pulsar (the lattice kernel at github.com/luxfi/pulsar).
Both kernels share the same lifecycle shape — Bootstrap → Reshare* →
Reanchor — and the same activation circuit-breaker contract. They differ
only in the math field: Pulsar over R_q (Module-LWE), Lens over a
prime-order curve group (discrete log).

Curves shipped: Ed25519, secp256k1, Ristretto255. Each has a
deterministically-derived secondary Pedersen generator H from a
Lens-specific nothing-up-my-sleeve tag.

Sign math: FROST 2-round Schnorr threshold signing per RFC 9591
(Komlo-Goldberg 2020). Verifier checks z·G ?= R + c·X under the
unchanged group public key.

Reshare math: HJKY97 zero-poly Refresh + Desmedt-Jajodia ReshareToNewSet
over the curve scalar field. Master secret s is preserved; only the
share distribution rotates per epoch.

Activation cert message format: QUASAR-LENS-ACTIVATE-v1, byte-equivalent
shape to QUASAR-PULSAR-ACTIVATE-v1.

Hash suite: HashSuite interface with Lens-SHA3 (production, cSHAKE256 /
KMAC256 / TupleHash256) and Lens-BLAKE3 (legacy) profiles.

DKG: distributed FROST DKG with Feldman commitments. No trusted dealer
required at genesis if the chain prefers proper distributed DKG.

KAT oracles: cmd/reshare_oracle and cmd/dkg_oracle emit deterministic
JSON vectors for cross-language byte-equality validation against a
future luxcpp/crypto/lens/ port.

Tests: full unit + integration coverage on every shipped curve. 60
unique tests, 0 failures.
2026-03-03 12:00:00 -08:00

44 lines
1.4 KiB
JSON

{
"curve": "ristretto255",
"variant": "refresh",
"seed": "lens.reshare.kat.v1",
"t_old": 3,
"t_new": 3,
"old_set": [
1,
2,
3,
4,
5
],
"new_set": [
6,
7,
8,
9,
10
],
"old_shares_hex": {
"1": "3ac06915f9ac6c23ee35ed4e6708c44fae3e6384bf50369df69f1f0f9c6fdf04",
"2": "6b59f3452cdf0a277d9db906eb73ae5175fbeaa870b0c0bcc1a60f94d3469b0c",
"3": "bcc1f3b83795c3641410a46d805317d1a6aaeab1cf20faccd114e92a79020f0f",
"4": "2df96a6e1bcf96dcb38dac8327a7fecd424c629fdca1e2cd26eaabd38ca23a0c",
"5": "beff5866d78c848e5b16d348e06e644849e0517197337abfc026588e0e271e04"
},
"new_shares_hex": {
"1": "ac804b9a21de551604eb6267de4f1480ac45b4d70276c55b77c298b3deb8540d",
"2": "0d3dd6eb7ca87b1e43ade48a188fdf7fa135a67a547982a7fbeaafd039031e08",
"3": "26d3e2d5e4237f22d159b3f660c277f43044292db10b9251fd795ef3e35b3708",
"4": "f742715859506022aef0ceaab7e9dcdd5a713def182df4597c6fa41bddc2a00d",
"5": "93b88b16c0ca0cc603d53f043e0b30271fbde2c08bdda8c078cb814925385a08"
},
"recovered_secret_hex": "16ca4c84b861fbb13d7636e9d30a37e051745344bc015b6e7000199cd27cdb07",
"notes": {
"curve_legal_values": "ed25519, secp256k1, ristretto255",
"deterministic_rng": "blake3-keyed",
"format_version": "1.0",
"intended_consumer": "luxcpp/crypto/lens/reshare cross-port byte-equal validation",
"variant_legal_values": "reshare, refresh"
}
}