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

exposes opts + bits #11

Merged
merged 2 commits into from
Mar 15, 2016
Merged

exposes opts + bits #11

merged 2 commits into from
Mar 15, 2016

Conversation

hackergrrl
Copy link
Contributor

No description provided.

@nginnever
Copy link
Contributor

LGTM

@daviddias
Copy link
Member

thank you @noffle . Could you add a test with this PR?

@nginnever
Copy link
Contributor

Is it possible to supply less than 1024 or a non-scalar value of bits to this? I remember seeing this in go where they require the bits to at least be greater than 1024 as well as some tests that ensure it's a multiple of 1024.

https://github.com/ipfs/go-ipfs/blob/6f8ea136d5d9d927016c59a232b712e7bd6ba795/repo/config/init.go#L92**

@hackergrrl
Copy link
Contributor Author

@diasdavid: Added a test. It's not very rigorous, but you aren't guaranteed a certain # of bytes in the resultant private key -- it varies from key to key.

@nginnever: You can generate smaller keys (it would seem). go-ipfs puts that limit for security, but I think that should be an IPFS-level concern (application) rather than a library concern.

@daviddias
Copy link
Member

LGTM, thank you @noffle and @nginnever for the input! :)

daviddias added a commit that referenced this pull request Mar 15, 2016
@daviddias daviddias merged commit 9536787 into libp2p:master Mar 15, 2016
@daviddias
Copy link
Member

released on 0.6.1 :)

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

3 participants