Skip to content

Import Rust authorization lock SDK support - #12

Merged
edo-chan merged 2 commits into
mainfrom
codex/solana-rust-authorization-locks
Oct 29, 2026
Merged

edo-chan merged 2 commits into
mainfrom
codex/solana-rust-authorization-locks

Conversation

@edo-chan

@edo-chan edo-chan commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Import the Rust protocol SDK portion of swig-wallet#226 and swig-wallet#240 into solana/rust/. This carries interface builders, client-role helpers, high-level wallet methods, and authorization-lock tests. CLI changes remain in swig-wallet.

The on-chain dependencies and IDL fixture are pinned to swig-wallet@c5edad67f82958f7fb282634ad91c752602e76ca, the source head of #240. The import supports Ed25519, secp256k1, secp256r1, and session-key lock operations; ProgramExec high-level lock helpers remain explicitly unsupported. Revisit the pin after the on-chain PR merges, before release.

The original CLI review comment asks for a transaction-correlated lock ID. The pinned program does not return one, so this SDK cannot guarantee it from a later account read; the CLI and program follow-up remains in swig-wallet.

Validation

Base 25818643ffc0b901be7cef1aa6ee04e67fe7db3e; head 9dfc555.

  • cargo check --workspace --locked: pass.
  • cargo fmt --all -- --check: pass.
  • cargo clippy --workspace --all-targets --locked: pass with existing warnings.
  • cargo test --workspace --locked: pass.
  • cargo test --workspace --locked --features rust_sdk_test: 151 SDK tests and 7 interface tests passed against the pinned program fixture.
  • Focused tests assert exact program errors and unchanged state after rejection; exercise real k1/r1 signatures, Ed25519 session add/remove, and configured rent-claimer refund.
  • Independent read-only review found no remaining concrete PR-local merge blocker after the proof updates.
  • git diff --check: pass.

The repository CI currently covers EVM; Solana checks above ran locally on this head. Solana CI and publishing remain separate follow-ups.

@edo-chan
edo-chan changed the base branch from codex/refresh-solana-protocol-sdks to main October 29, 2026 20:18
@edo-chan
edo-chan marked this pull request as ready for review October 29, 2026 20:24
@edo-chan
edo-chan merged commit 6f15343 into main Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant