Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can the private key be imported? #109

Open
nacrit opened this issue Apr 25, 2023 · 2 comments
Open

Can the private key be imported? #109

nacrit opened this issue Apr 25, 2023 · 2 comments

Comments

@nacrit
Copy link
Contributor

nacrit commented Apr 25, 2023

  • If the sdk is used to start multiple services, the generated private keys are distributed on each service, which has many problems.

  • If the private key can be exported and stored in the public area, I can import it for use when needed. For example, before using the transfer method, I first import the private key, such as providing methods such as sui.importPri("XXX")

@GrapeBaBa
Copy link
Owner

private is stored in file keystore right now. for import it should be easy to implement.

@nacrit
Copy link
Contributor Author

nacrit commented May 4, 2023

If a private key is added to the file, it will not be updated at runtime, and the private key information will only be initialized every time it is started.
Because some private keys are stored externally rather than in the file, Can I add parameters for the private key in the transfer method?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants