It would be cool if we add a module for "authentication".
We would take the signature check out of replayprotection's verify. We could then pass in the encoded data + the bytes signature. then the internal function takes care of the rest.
By default we would inherit SingleSigner.
But it could be changed to MultiSigner. Both have the same interface:
verify(bytes memory data, bytes memory signature) returns (bool)
MultiSig would just decode signature to the individual sigs it cares about.
It would be cool if we add a module for "authentication".
We would take the signature check out of replayprotection's verify. We could then pass in the encoded data + the bytes signature. then the internal function takes care of the rest.
By default we would inherit SingleSigner.
But it could be changed to MultiSigner. Both have the same interface:
MultiSig would just decode signature to the individual sigs it cares about.