-
Notifications
You must be signed in to change notification settings - Fork 44
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
.createFromJSON does not check if public key and id match #79
Labels
status/ready
Ready to be worked
Comments
mkg20001
added a commit
to mkg20001/js-peer-id
that referenced
this issue
Jun 21, 2018
mkg20001
added a commit
to mkg20001/js-peer-id
that referenced
this issue
Jun 21, 2018
mkg20001
added a commit
to mkg20001/js-peer-id
that referenced
this issue
Jun 21, 2018
mkg20001
added a commit
to mkg20001/js-peer-id
that referenced
this issue
Jul 28, 2018
Is this fixed now? |
Yes, it looks like it. We verify the private and pub key digests match (if there is a public key) and that the id and priv digest match, which inherently validate the public and id match. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.createFromJSON only matches private key => id and private key => public key
Because the private key is optional the public key will not get matched against the id if it is missing.
The text was updated successfully, but these errors were encountered: