Nonce reuse on the toy curve
The key is d = 23, so Q = [23]G = (35, 71). Both signatures use k = 10, so both have r = 26.
Cryptographic modeling lab
Selûne models a signature scheme before it writes one line of production code. It pins the standards and constants, states the algebra and the custody protocol, gives every claim one kind of evidence, and only then builds. This lab runs each stage in your browser on the pinned vectors.
Every clause of the ECDSA specification passes through the same six gates. Select a gate to see what it fixes. Select a clause to see its sentence, its equation, the one lane of evidence that closes it and the control that must fail.
The toy curve has the same shape as secp256k1 (a = 0, b = 7) and a prime group of order n = 67 generated by G = (1, 18). It has 66 affine points plus the point at infinity 𝒪, so the full addition table has 67 × 67 = 4,489 ordered pairs. Pick two points. The lab adds them with the textbook chord-and-tangent rule and with the complete Renes–Costello–Batina formulas, step by step, and checks that both agree.
Want to see E(F79), Jacobian slices, and GLV splitting in 3D? Open Explore an Elliptic Curve.
Pick a vector from the frozen oracle corpus. The lab hashes the message, derives the RFC 6979 nonce with HMAC-SHA-256, computes R = [k]G, r and s, normalizes s to low-S, and verifies the result. Each value that the corpus pins is checked against it. The private keys here are public test keys, so the lab shows k.
A repeated nonce gives away the private key in two lines of algebra. The custody model exists to stop that repeat. A verifier that accepts a raw 32-byte digest from an attacker can be fooled without any key at all.
The key is d = 23, so Q = [23]G = (35, 71). Both signatures use k = 10, so both have r = 26.
The signer reserves each nonce under a key that binds the digest. Mutant M1 drops the digest from that key, so a second request finds the first reservation and signs with the same k.
Under Prehashed32 the verifier never sees the message, only a 32-byte number. Anyone can pick a and b, set R = [a]G + [b]Q, r = xR mod n, s = r·b⁻¹ and z = a·s, and the triple (z, r, s) verifies under Q. No private key is involved.
A Plutus script must pass sha2_256(tx_payload) to verifyEcdsaSecp256k1Signature. It must never pass a 32-byte value that the other party chose.
A profile fixes the curve, the encoding, the hash framing and the low-S policy. Apply a mutation and see how each profile answers. Under Secp256k1Cip49 a malformed input is an error and a bad signature is false, matching the Plutus builtin.
Five assumptions sit under every result on this page. No test, model or proof can raise them, and the MARS ledger records them as NonUpgradableEvidence.
Each atomic claim gets exactly one primary lane. Answer the questions in order. The first “yes” decides the lane.
External C libraries are reference oracles. Where an oracle is more lenient than a Selûne profile, the divergence is recorded and the strict profile stands.
A constant-time claim holds for one binary on one CPU. The receipt binds the source digest, build flags, toolchain, target and binary digest, and a deliberately leaky control must be detected on the same harness, or the gate refuses the receipt.