Skip to content

Create password encrypted wallet.json instead of privileged private.key #102

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

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

Conversation

eureka-cpu
Copy link

Uses the geth account keystore module to generate a new key and store it in a wallet.json file, encrypting it with a passphrase, instead of storing a private key in a privileged key file.

@eureka-cpu eureka-cpu self-assigned this Aug 12, 2025
@eureka-cpu eureka-cpu added the enhancement New feature or request label Aug 12, 2025
@eureka-cpu eureka-cpu requested a review from draganm August 12, 2025 03:45
@eureka-cpu
Copy link
Author

Other commands would need to be updated as a result of this since they use the private.key file still. Let me know if I'm barking up the wrong tree, just trying to make sure the format is consistent between golembase and the SDKs.

Ref Golem-Base/python-sdk#21

@eureka-cpu eureka-cpu marked this pull request as ready for review August 12, 2025 04:10
}, nil

}

// readPassword reads a password from stdin if piped, or interactively if in a terminal
func readPassword() (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't CreatePassword and this the same thing?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreatePassword confirms the password and checks that they match when you are creating a new account, readPassword does not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants