Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

Develop #46

Merged
merged 49 commits into from
Oct 27, 2017
Merged

Develop #46

merged 49 commits into from
Oct 27, 2017

Conversation

ebuchman
Copy link
Contributor

No description provided.

odeke-em and others added 30 commits September 15, 2017 17:35
Fixes #35
Updates tendermint/coding#27

Started a doc.go file to provide an overview/high level
dive into the functionality of this repo.

Also added an example_test.go file in which we can
put end-to-end code examples/actual usage patterns
that can be copied and pasted and will always have to
compile when tests are run to ensure that we don't regress.
This commit adds salts to the library using bcrypt.
add metalinter to Makefile & apply some fixes
if pass == "" {
return key.Bytes(), nil
func (e secretbox) Encrypt(privKey crypto.PrivKey, passphrase string) (saltBytes []byte, encBytes []byte, err error) {
if passphrase == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't this be deleted, since we don't want users to encrypt keys without a passphrase?

Copy link
Contributor

Choose a reason for hiding this comment

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

We break enough stuff with our encryption library. This is the only way to save keys between versions... export unencrypted and import unencrypted.
We should expose them and use them to migrate keys. Until production release and a stable go-crypto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this mean its currently possible to migrate keys? We should defntly be trying to support that asap if possible ...

@ebuchman ebuchman merged commit d1f00be into master Oct 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants