Content
@
0 reply
0 recast
2 reactions
Spencer Graham 🧢
@spengrah.eth
Is anybody aware of an ERC standard (or draft) related to using EIP712 typed signature data to route validation logic for ERC1271 contract sigs? Or if one doesn't exist, would that be a worthwhile standard? Here's what I'm using currently, but it needs to be generalized to support recursive contract sigs
4 replies
1 recast
7 reactions
frangio
@frangio
General ERC-1271 signatures should be treated opaquely, so I think this would make more sense as a Farcaster-specific spec rather than a general purpose ERC.
1 reply
0 recast
1 reaction
Spencer Graham 🧢
@spengrah.eth
Thanks for the feedback! I'm less looking to create a new ERC, more looking for prior art to learn from. That said, I am considering generalizing this scheme to something like the following, in large part in order to treat the actual signature more opaquely. I'm curious what you think.
1 reply
0 recast
0 reaction
frangio
@frangio
This looks good, but note that if the signature can itself be ERC-1271, you don't have a "recover" operation so you need to know what signer to verify against. I don't think that's your case though.
1 reply
0 recast
1 reaction
Spencer Graham 🧢
@spengrah.eth
Signature itself as ERC-1271 is the case that's precipitating this change, so it is important here But Safe's approach of encoding the signer into the r component of the signature enables "recovery" https://github.com/safe-global/safe-smart-account/blob/2278f7ccd502878feb5cec21dd6255b82df374b5/contracts/Safe.sol#L285
0 reply
0 recast
1 reaction