Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: signer interactivity #617

Merged
merged 1 commit into from
Jun 28, 2024
Merged

feat: signer interactivity #617

merged 1 commit into from
Jun 28, 2024

Conversation

xJonathanLEI
Copy link
Owner

@xJonathanLEI xJonathanLEI commented Jun 28, 2024

Makes signer implementations specify whether a signing operation is "interactive" (or just expensive). Utilizing this new information, Account and AccountFactory now make more informed decisions on whether to request real signatures for different types of operations.

The most significant benefit of this change is allowing using hardware wallet without excessive unnecessary signing requests.

This PR is made a breaking change, despite the possibility of maintaining backward compatibility by providing default implementations of the new trait methods. This is because #611 has already introduced a breaking change on starknet-signers anyway.

Breaking changes include:

  • get_invoke_request and get_declare_request methods are no longer pub; it was a mistake making them public in the first place;
  • new trait methods on Signer, Account, and AccountFactory without default impls.

@xJonathanLEI xJonathanLEI force-pushed the dev/signer_interactivity branch 2 times, most recently from ce1d856 to 919f89c Compare June 28, 2024 23:03
Makes signer implementations specify whether a signing operation is
"interactive" (or just expensive). Utilizing this new information,
`Account` and `AccountFactory` now make more informed decisions on
whether to request real signatures for different types of operations.

The most significant benefit of this change is allowing using hardware
wallet without excessive unnecessary signing requests.
@xJonathanLEI xJonathanLEI force-pushed the dev/signer_interactivity branch from 919f89c to 7ef12c2 Compare June 28, 2024 23:12
@xJonathanLEI xJonathanLEI merged commit 36bcc5d into master Jun 28, 2024
26 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/signer_interactivity branch June 28, 2024 23:28
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