Conversation
Independent Rust implementation of clankdar-attest-v1 (reference: bench/attest.ts in the clankdar repository). A verifier commits to an unrevealed generator seed, rescores the response with the ported clankdar-score-v2 canonicalization, and signs a seed-revealing receipt; check replays offline and --deep regenerates via the bench/instance.ts oracle. JWK keys and receipts interop with the TypeScript implementation in both directions. A receipt attests one signed response inside one time window — not identity, liveness, trust, or host/tool authority. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| } | ||
| let trimmed = digits.trim_start_matches('0'); | ||
| if trimmed.is_empty() { | ||
| return Some("0".to_string()); |
| if !grid.iter().all(|row| row.len() == width) { | ||
| return None; | ||
| } | ||
| let mut out = String::from("["); |
| 6, | ||
| 424242, | ||
| "solve: AB + BA = CC", | ||
| "2454", |
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.
Summary
Adds
prototypes/clankdar-attest, an independent Rust implementation ofclankdar-attest-v1— the sealed-seed capability attestation protocol whose reference lives in the clankdar repository (bench/attest.ts).checkis fully offline: Ed25519 signature over the verbatim payload (no re-serialization), key-id binding, seed commitment, response format, verdict rescore via the portedclankdar-score-v2canonicalization, and answer-before-expiry.check --deep,issue,verifycall the canonical generator oracle (bun bench/instance.ts) so the recorded prompt and expected answer must regenerate exactly; oracle identity echoes are bound to the request.keygen; tests replay TS-issued receipts, andbun bench/attest.ts checkreplays Rust-issued receipts (verified live).Scope
A receipt attests that one signed response satisfied one challenge inside one time window. It does not prove a model or AI produced the response, is not a liveness credential, grants no authority, and provides no durable replay protection.
Test plan
cargo fmt --manifest-path prototypes/clankdar-attest/Cargo.toml -- --checkcargo test --manifest-path prototypes/clankdar-attest/Cargo.toml --locked— 16 testscargo clippy --manifest-path prototypes/clankdar-attest/Cargo.toml --all-targets --locked -- -D warningsGenerated with Devin