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

Add a method to create a pre shared key when you have the raw bytes #1570

Merged
merged 2 commits into from
May 13, 2020

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented May 11, 2020

This was an oversight of the original impl. Currently the only way to make a PSK is by parsing a PSK file. But sometimes you already have the raw bytes.

The raw bytes are just random data, so there is no harm in having a method to create a PreSharedKey
from the raw bytes.

@rklaehn
Copy link
Contributor Author

rklaehn commented May 13, 2020

Is the failed WASM build actually related to this PR, or a fluke? It seems very unlikely that this would cause a build failure...

@tomaka tomaka merged commit a83654c into libp2p:master May 13, 2020
@rklaehn rklaehn deleted the actyx/pnet-secret-public branch May 13, 2020 15:30
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.

2 participants