-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
Add new key_store interface and two new key stores #243
Add new key_store interface and two new key stores #243
Conversation
Gustav-Simonsson
commented
Jan 6, 2015
- Add new generic key_store interface
- Add new plaintext key store storing unprotected keys on disk
- Add new encrypted key store storing encrypted keys on disk
- Add new entropy mixing function using OS and go runtime sources
* Add new generic key_store interface * Add new plaintext key store storing unprotected keys on disk * Add new encrypted key store storing encrypted keys on disk * Add new entropy mixing function using OS and go runtime sources
Do not merge! |
Note: the GetEntropyTinFoilHat function is half-joke, half-serious. I don't know if it's really a good idea, but was interested in seeing what hard-to-guess sources of (pseudo) entropy is available from within go. |
In general I'd love to see simpler names, e.g. |
I'm making all those comments because this is your first Go code submission to the project. Please don't feel offended if you know those things. |
* Simplify scrypt constants with const block * Add key store constructors and make their types private * Simplify key store and file namings to be less Java Enterprise™ * Change test error logging to use t.Error(err) * Reduce number of naked returns (just like my ex-gf) * Simplify file reading path code
All comments from @fjl addressed (see commit). The comment about struct literals is moot after adding constructors returning private types. |
@fjl No offense taken - I'm here to learn :) All good comments. Thanks! |
PrivateKey *ecdsa.PrivateKey | ||
} | ||
|
||
type PlainKeyJSON struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These structs don't need to be exported.
New PR addressing latest comments: #259 |
Next time you can just leave the PR open. Any commits made against your own repo will automatically be added in the PR. |
Add an Ethash Fake sealing option for `—dev` mode, using `—dev.ethash`
* add memoize to MethodById * switch to reader writer lock
Export errNotFound from memorydb to use it in Nitro error checks
…innet-release Prepare optimistic Ecotone Mainnet release
* mark anchor tx * fix comments