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

Expose user private keys #172

Closed
DavidNix opened this issue Jun 24, 2022 · 4 comments
Closed

Expose user private keys #172

DavidNix opened this issue Jun 24, 2022 · 4 comments

Comments

@DavidNix
Copy link
Contributor

Feedback from ibc-go team:

I'm trying to add a test which creates an signs a transaction using a grpc client. In order to do this I need the private key of a user. Can you think of a relatively straight forward way of doing this?

I see that the generated private keys go into some db somewhere? But maybe we could use a preset fixture of a mnemonic/public/private key for certain tests that need access to this. What do you think?

@chatton
Copy link
Contributor

chatton commented Jun 24, 2022

To add some specifics, I was following these docs and was unable to sign the transaction on behalf of a created user as we cannot access the private keys (priv).

@chatton
Copy link
Contributor

chatton commented Jun 27, 2022

It looks like we should be able to derive the private key from a mnemonic.

Maybe if we instead --restore users when adding them (by generating a mnemonic), we could return the private key as a new field on this struct

@DavidNix
Copy link
Contributor Author

DavidNix commented Jun 27, 2022

I like the idea of extending ibc.User with it.

Given my forthcoming OOO starting tomorrow, I will ask @boojamya (our PM) to consider prioritizing this one.

@jonathanpberger
Copy link
Contributor

Closing as stale.

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

No branches or pull requests

3 participants