-
Notifications
You must be signed in to change notification settings - Fork 29
Add usage example to README #9
Comments
Happy to propose a PR with the above if that’s good, but it would be nice if we could do the key generation without relying on two other packages. |
Well, we don't really need go-ipfs-util (can use |
Oh, I just looked and realized libp2p-crypto already has privateKey, publicKey, err := crypto.GenerateKeyPair(crypto.RSA, 1024)
Oh, d'oh, I guess it has to be a Libp2p |
That should work. We often specify a "test" source of randomness to make the tests faster but we really shouldn't be doing that in examples. Also, we should probably use a 2048 bit key (instead of 1024 bits). Every time we use 1024, we should explicitly say "not safe for production use". |
We could still use some more examples of other operations, but this should be a good start. License: MIT Signed-off-by: Rob Brackett <rob@robbrackett.com>
I think it would be really helpful to add one or two usage examples to the README, e.g:
The text was updated successfully, but these errors were encountered: