Skip to content

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

@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.

3 participants