Skip to content

Comments

feat: V2 signers implementation with external signer support#26

Draft
0xLeo-sqds wants to merge 10 commits intofeat/implement-account-utilizationfrom
feat/v2-signers-implementation
Draft

feat: V2 signers implementation with external signer support#26
0xLeo-sqds wants to merge 10 commits intofeat/implement-account-utilizationfrom
feat/v2-signers-implementation

Conversation

@0xLeo-sqds
Copy link
Collaborator

No description provided.

- Add SmartAccountSignerV2 enum (Native, P256Webauthn, Secp256k1, Ed25519External)
- Add SmartAccountSignerWrapper for backward-compatible V1/V2 serialization
- Add precompile introspection for external signature verification
- Add instructions: settings_add_external_signer, settings_remove_external_signer, proposal_vote_v2
- Update Consensus trait and Settings to use SignerWrapper
- Add 23 new error types for V2/precompile errors

Current state pass all regression tests with the old SDK
Extract Settings::modify_with_action branches into helpers to reduce BPF stack usage, and add V2 signer/migration validation plus sync consensus edge-case tests.
…st updates

Merges SDK regeneration and test fixes that resolve the missing program
account issue causing 12 test failures with 0xbbd (AccountNotEnoughKeys).

Conflict resolution:
- Combined imports in increment_account_index.rs (events + V2 utils)
- Added account index validation to batch_create validate() and validate_v2()
- Preserved V2 instruction structure with create_batch_inner helper
- Fixed access_control to pass args parameter
- Removed unused Consensus import
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