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

Generic SignatureCheck Verifier #173

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JoshOrndorff
Copy link
Contributor

This PR introduces a new Verifier implementation calledSignatureCheck. It is similar to the existing Sr25519Signature except that it is generic over Substrate's notion of crypto Pair.

@JoshOrndorff JoshOrndorff requested a review from muraca February 13, 2024 19:04
@muraca
Copy link
Collaborator

muraca commented Feb 14, 2024

Am I missing something, or can we just ditch the Sr25519SignatureCheck struct and provide a type Sr25519SignatureCheck = SignatureCheck< sr25519::Pair>; with doc comments?

Base automatically changed from joshy-verifier-beef-up to main February 15, 2024 19:06
@JoshOrndorff
Copy link
Contributor Author

Yes, keeping the original Sr25519SignatureCheck is redundant at this point. I had originally left it there to show how you can easily use your own signature scheme even if it doesn't already exist in Substrate's code.

Maybe it makes more sense to do this for something like RSA https://lib.rs/crates/rsa which really doesn't exist in Substrate's code.

One potential problem is that the wallet uses sc-keystore, which only supports certain types of crypto not including RSA. So maybe the wallet just doesn't support rsa then; I guess that would be fine.

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