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

No hook interface #208

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

No hook interface #208

wants to merge 2 commits into from

Conversation

cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Nov 27, 2024

Description

Replaces validation hook with a module validation signature that includes the transaction.

Additional context

The two step validation hook + module validation was needlessly complicated. It should have been rare for an external transaction to call isValidSignature as part of a session, but the validation flow was built around it.
Now that's supported via the same temporary transaction storage as before, but not as the primary path.

This was a long running interface debt between Clave and a partially implemented 7579 validation module.

Remove clave interface for validation, only need one interface
Would love to have a single interface, but 1271 makes the extra
transaction argument difficult, so an easy workaround is just having two

Having them named the same is also slightly confusing when one is only
called from isValidSignature
@cpb8010 cpb8010 added enhancement New feature or request project: contracts labels Nov 27, 2024
@cpb8010 cpb8010 requested a review from ly0va November 27, 2024 07:28
@cpb8010 cpb8010 self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request project: contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant