-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Injection of Signing algorithm in Keys Add CLI command. #8803
Comments
we are particularly interested in this use case where we would like to pass our own custom "eth_secp256k1" signing algorithm to pass into account generation. However, when we use the sdk thanks in advance for your help! |
Is this related/duplicate of #6500? |
Yes, I believe it is related |
In #8862 I'm extending the
|
I added subtasks to just start tackling this issue. |
@robert-zaremba #8862 is not necessarily related to this. It does not look like a sub-task to me because this issue is not about supporting more algos in the SDK. This issue is about allowing applications to use their own algos and inject them in the keyring so that they could be supported by the keyring and the cli commands. |
Re-opening this as it's not actually taken care of by #8886, and we should still be tracking the injection of new signing algos. |
hey guys! cosmos-sdk/crypto/keyring/keyring.go Lines 224 to 226 in 2e9e5d6
Then, applications can set these options through their context: Lines 72 to 76 in 2e9e5d6
Lines 404 to 411 in 2e9e5d6
With this approach, it doesn't seem necessary to rewrite the add command.
what do you guys think? It is sufficient to close this? |
Closing this for now, as the context allows applications to pass their algorithms as an option. Feel free to reopen it if you believe this doesn't resolve the issue. |
Summary
When a user creates a new SigningAlgo in order to be used by the keyring the only way they can append it as an option is to rewrite the Add command. We can try to find a way that a custom signing algorithm can be injected in the keyring without having to rewrite the command.
simapp keys list-algos
) Add a new command to list supported algos #8886For Admin Use
The text was updated successfully, but these errors were encountered: