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

v2 signature decoding validates EIP-6492 signatures #177

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

ScreamingHawk
Copy link
Contributor

@ScreamingHawk ScreamingHawk commented Nov 22, 2024

Allows EIP6492 signature to be validated as a dynamic signature. Inner EIP1271 is then stripped from the signature and returned for wallet recovery.

Note: EIP6492 is not valid as a sequence wallet signature part. Deployment transactions are typically prepended to the bundle to allow the normal signature to validate. As this section of code is for config recovery and not validation I think using EIP6492 to include the deployment is valid usage. Returning the inner EIP1271 signature allows validation to proceed as normal.

@Agusx1211
Copy link
Member

I think the overall idea is fine. Someone consuming these parts should perform the deployment first before attempting to execute them onchain. My only feedback is that 6492 signature parts shouldn’t return core.SignerSignature but instead something like core.Signer6492Signature or similar, and the returned struct should contain both the signature and the code to deploy the wallet. It could include either:

a) The signature and deploy code, both decoded
b) The full encoded 6492 signature
c) Both

core/core.go Outdated Show resolved Hide resolved
@ScreamingHawk ScreamingHawk merged commit 0a2c8eb into master Dec 16, 2024
2 checks passed
@ScreamingHawk ScreamingHawk deleted the 6492 branch December 16, 2024 19:49
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