Skip to content

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Sep 16, 2025

Continuing on #1182

Continuing on the previous PR, which was adding support for signature with a Guardian,
this PR will add support for signature from argent X multisig wallets.

This PR is refactoring the way we verify a message, by using the provider native function, instead of calling the contract method, which will simplify the process of formatting the signature array before usage.

The code should now be able to verify all starknet signature format

@wa0x6e wa0x6e requested a review from Copilot September 16, 2025 20:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors StarkNet signature verification to support multisig signatures by replacing manual contract interaction with the provider's native verification function. It simplifies the verification process and extends support to all StarkNet signature formats including Argent X multisig wallets.

  • Replaced manual contract ABI calls with provider's built-in verifyMessageInStarknet method
  • Removed custom signature array processing logic that was previously needed for different wallet formats
  • Added comprehensive test fixtures for various signature types including Argent X multisig

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

File Description
src/verify/starknet.ts Refactored verification logic to use provider's native method, removed ABI and signature processing
src/verify/starknet.spec.ts Updated test cases to cover new signature formats and changed error handling expectations
test/fixtures/starknet/message-alias-argent-x-standard.json Added test fixture for Argent X standard account signatures
test/fixtures/starknet/message-alias-argent-x-multisig.json Added test fixture for Argent X multisig account signatures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wa0x6e wa0x6e requested a review from ChaituVR September 16, 2025 20:14
Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

@ChaituVR ChaituVR merged commit 6bdd4ac into master Sep 17, 2025
4 checks passed
@ChaituVR ChaituVR deleted the feat-support-starknet-multisig branch September 17, 2025 10:59
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.

2 participants