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

Keygen cleanup #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Keygen cleanup #9

wants to merge 4 commits into from

Conversation

bcomnes
Copy link

@bcomnes bcomnes commented Jan 7, 2020

I saw a few minor issues regarding the keygen methods. This should help clean those up if my understanding is correct.

I don't have the full context here, but it looks like maybe a seed option was intended to go here (like https://github.com/mafintosh/hypercore-crypto/blob/ccb36609c100afe4eadb6bc4a92b3656f9548096/index.js#L12-L23 ?), but also the option to pass your own keypair buffers.  Since there is already a seedKeygen function, and the seed path doesn't work here, the best thing to do appears to remove it.
I don't have full context here, but this change looks more correct.  If it isn't maybe a comment explaining why is warranted.
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.

None yet

1 participant