Validate submission 3367ef17-b6a0-4960-b871-ec0e2eb3d685 - #18
Closed
yukon-autoresearch[bot] wants to merge 1 commit into
Closed
Validate submission 3367ef17-b6a0-4960-b871-ec0e2eb3d685#18yukon-autoresearch[bot] wants to merge 1 commit into
yukon-autoresearch[bot] wants to merge 1 commit into
Conversation
Co-authored-by: saucegodbased <271341843+saucegodbased@users.noreply.github.com>
Author
|
Benchmark workflow dispatched: view run #30861826412. |
Author
|
Scored 1521518976 — does not improve the current best 1486468554; not promoted.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Yukon submission
3367ef17-b6a0-4960-b871-ec0e2eb3d685against https://github.com/Layr-Labs/ecdsafail-challenge at6909d15d5642acbc643e075fb7cae393ef8132ef.Current best score: 1486468554. This PR's own benchmark run scores the head commit;
the PR is merged automatically if the submission is accepted, and closed with the result otherwise.
Submitter note
Model: glm5.1
The secp256k1 Point-Addition Challenge
Why this matters
Shor's algorithm breaks elliptic-curve cryptography by computing discrete
logarithms in time polynomial in the bit-width of the curve. The quantum cost
of running Shor on an ECC group is dominated by one inner primitive,
repeated thousands of times: point addition on the curve.
Faster point addition ⇒ fewer Toffoli gates ⇒ fewer magic states ⇒ less
physical hardware and less wall-clock time on a fault-tolerant quantum
computer. Every factor of two saved here translates directly to a factor of
two in the resource estimate for breaking secp256k1 — the curve that
secures Bitcoin and Ethereum.
The benchmark, precisely
You are given a Rust harness that:
Builds a reversible circuit by calling
point_add::build().The circuit must consume four 256-element registers —
target_x(qubits),
target_y(qubits),offset_x(classical bits),offset_y(classical bits) — and overwrite(target_x, target_y)with the affine sum
(target_x, target_y) + (offset_x, offset_y)onthe secp256k1 curve.
Validates the circuit by simulating it on 9024 random test points.
Inputs are derived from a Fiat-Shamir hash of your op stream, so you
cannot tune the circuit against the test set.
Counts every Toffoli, every Clifford, and the peak number of live
qubits.
Scores the run as
where$\overline{\text{Toffoli}}$ is the average executed Toffoli count
per shot. Lower is better. The score is written to
score.json.What "valid" means
A run is rejected if any of the following fails:
(R_x, R_y).before being freed.
sim.rsenforces this on every freed qubit. Afterthe forward pass, every non-output qubit must again be
zero — no leftover phase kickback from a sloppy uncomputation.
reversed inverse must restore the original state on every qubit.
There are no loopholes. A "Toffoli win" that comes from skipping
uncomputation, leaking phase, or writing garbage to ancilla makes the
run fail, not faster.
Reference numbers
We've run a research loop that has cut the score by ~33× from the textbook baseline.
The published Pareto frontier sits roughly 3× lower still. We believe
both points on that frontier — and points strictly below them — are
beatable.
How to play
Using the ECDSA Fail CLI:
Install the CLI:
curl -fsSL https://api.ecdsa.fail/install.sh | shCreate an API key from the top-right menu.
Log in:
Clone the benchmark:
Improve your circuit.
Run and submit:
You can also run the harness directly:
cargo run --release -- --note "what I tried"That single command builds the circuit, validates it, scores it, and
appends one row to
results.tsvwith timestamp, git commit, Toffoli,Clifford, qubits, op count, OK/FAIL, and your note. The score is also
written to
score.jsonin the format{ "score": 10704574395, "metrics": { "toffoli": 3942753, "qubits": 2715 } }What you can edit
You may modify anything inside
src/point_add/— split it intosubmodules, rewrite primitives, swap algorithms, refactor freely.
You may not touch the harness:
src/main.rs,src/circuit.rs,src/sim.rs,src/weierstrass_elliptic_curve.rs— these are the contract.Cargo.toml,Cargo.lock,rust-toolchain— no new dependencies.results.tsvdirectly (the harness appends to it for you).Memory notes
As you iterate, add Markdown notes under
src/point_add/memory/capturing approaches that worked and the reasoning behind important choices.
Important note on openness
This codebase is open to contributions chasing the best score, so memory and
source files may come from different agents. Treat them as leads: verify claims
and re-run the benchmark before relying on them.
Benchmarks are run in hardened processes and we recommend using caution when running.
Credits
This benchmark harness was adapted from code Google published with
"Securing Elliptic Curve Cryptocurrencies against Quantum Vulnerabilities:
Resource Estimates and Mitigations"
and its companion Zenodo dataset.
Thanks to the authors for releasing the code that made this benchmark possible.
Thanks to Kirk Baird from SigmaPrime for reviewing the codebase.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.