Repository navigation
fix(drive-abci): build an identity update test's ECDSA key without the removed secp256k1 path - #6459
Conversation
…ut the removed secp256k1 path #5519 removed dpp's raw secp256k1 dependency and its Keypair import from this test module; #6354, merged after it, added a test helper that still used Keypair. The tests of drive-abci did not compile on v5.2-dev. The helper now makes its key as the rest of the module does. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Final review complete — no blockers (commit 5302fe6) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
This test-only fix replaces the unresolved Keypair calls in the Drive ABCI identity-update helper with the module’s existing seeded ECDSA key generator, preserving the compressed public-key format and signing path. The author reports 49 targeted tests passing and a clean Clippy run. GitHub CI showed the Kotlin SDK build and tests passing and the Rust workspace tests still running, with no failed code checks on this head.
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: rust-quality); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 4: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 5: gpt-6.2-sol (agent: phase2-reviewer, role: rust-quality); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.2-sol(effort low) — This is a small, test-only, self-contained replacement of a removed key-construction API with the module’s existing equivalent, and its correctness is straightforward to verify. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort high); agentphase1-reviewer,muse-spark-1.3-contributor— rust-quality (completed, effort high); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity quota lookup failed),glm-5.3-flash(zai quota lookup failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— rust-quality (completed, effort medium); agentphase2-reviewer
|
Bots are done — your move: post |
…missions-model Brings in #6459 (an identity update test's ECDSA key), #6354 (ML-DSA-65 identity keys at protocol version 16) and #6444 (a document type's references and rules read from its typed definition). Resolved with mergiraf off: - try_from_definition/v0/mod.rs: documentation only. #6444's list of what is still read from the written-back schema kept, with permissions read there through generation 5. The dispatch on the try_from_schema slot merged as it was. #6444's typed reference readers have no arm for apply_property_reference 2, which only the mock version exercising document permissions selects: the next commit adds it. No version table, error code or protocol version 16 slot conflicted (#6354's v16.rs, codes.rs and fee tables merged untouched by this branch). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Basic explanation
What this does: Makes the tests of
drive-abcicompile again onv5.2-dev. One test helper of the identity update tests still built its ECDSA key withKeypair, a name that is no longer imported there.Value:
v5.2-devis red for every open PR: theRust workspace tests / Testsjob stops at its clippy step witherror[E0433]: cannot find type Keypair in this scope(identity_update/mod.rs:3952). This unblocks them.Risks: None for consensus. The change is in a
#[cfg(test)]helper only.Issue being fixed or feature implemented
Two PRs merged one after the other on 2026-12-02 and each was green by itself:
dpp::secp256k1::Keypairimport of this test module, moving every use torandom_secret_key.update_adding_an_ecdsa_key, a test helper written against the old import.Together they do not compile.
What was done?
update_adding_an_ecdsa_keymakes its key as the rest of the module does since #5519:Before:
After:
It was the only leftover use: a search of the Rust packages on
v5.2-devfordpp::secp256k1,Keypair::newand.secret_key().to_secret_bytes()finds no other.In-place changes to shipped generations
None. Test code only.
How Has This Been Tested?
cargo test -p drive-abci --lib --locked identity_update::: 49 passed, among them the ML-DSA tests that call the helper.cargo clippy -p drive-abci --all-targets --all-features --locked -- --no-deps -D warnings: clean.cargo fmt --all.Not run: the full
drive-abcisuite and the other crates.Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
5302fe6/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.Summary by CodeRabbit