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

witness node accepts private key from file #1812

Conversation

crypto-ape
Copy link
Contributor

Hey Monkeys!

This change implements an option for adding private keys from files.

Ape out!

@crypto-ape crypto-ape changed the title witness node accept private key from file witness node accepts private key from file Jun 20, 2019
libraries/plugins/witness/witness.cpp Outdated Show resolved Hide resolved
libraries/plugins/witness/witness.cpp Outdated Show resolved Hide resolved
libraries/plugins/witness/witness.cpp Outdated Show resolved Hide resolved
libraries/plugins/witness/witness.cpp Outdated Show resolved Hide resolved
libraries/plugins/witness/witness.cpp Outdated Show resolved Hide resolved
@pmconrad
Copy link
Contributor

Any insight why the key must be specified as a [public,private] pair? The public part is redundant, it would be simpler if the file contained only private keys.

While you're at it, perhaps add another option that reads private keys from a file descriptor, as in https://www.gnupg.org/gph/en/manual/r1736.html . That would open the possibility to enter the key on startup, so that it doesn't have to be stored on disk.

@pmconrad pmconrad added this to the 3.3.0 - Feature Release milestone Jun 21, 2019
@crypto-ape crypto-ape force-pushed the witness_node-accept_private_key_from_file branch from 3fb84da to 197acba Compare June 26, 2019 16:02
@crypto-ape
Copy link
Contributor Author

crypto-ape commented Jun 26, 2019

I guess most of the comments shall be resolved. Furthermore, I have rebased the changes on develop.

The [public,private] is the original format.

As far as the file descriptor goes, I am not that much interested in it right now.

@crypto-ape crypto-ape force-pushed the witness_node-accept_private_key_from_file branch from 197acba to 35961a6 Compare July 1, 2019 17:55
@crypto-ape crypto-ape force-pushed the witness_node-accept_private_key_from_file branch from 35961a6 to 390a43e Compare August 2, 2019 17:30
@crypto-ape crypto-ape force-pushed the witness_node-accept_private_key_from_file branch from 390a43e to 89e4e4e Compare August 5, 2019 15:12
Copy link
Contributor

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

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

Thanks!

@abitmore abitmore merged commit 25db2cc into bitshares:develop Aug 9, 2019
@ryanRfox ryanRfox mentioned this pull request Nov 18, 2019
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.

3 participants