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

Confirming publicKeyMultibase originated from ed25519PubKey #21

Open
andrewlunde opened this issue Aug 22, 2024 · 0 comments
Open

Confirming publicKeyMultibase originated from ed25519PubKey #21

andrewlunde opened this issue Aug 22, 2024 · 0 comments

Comments

@andrewlunde
Copy link
Contributor

andrewlunde commented Aug 22, 2024

While I understand that only the holder of the ed25519 private key would be able to sign a message that could be verified by the corresponding ed25519 public key, I would like to confirm that the didDocument retrieved from the blockchain was in fact created with the particular ed25519 public key.

Can the verificationMethod[0].publicKeyMultibase be decoded in some way as to reveal the ed25519 public key?

didDocument: {
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1"
  ],
...
    {
...
      "publicKeyMultibase": "z2bK9Bq1zYQ5YQd8d5PcQNnoYBYudbAMo5gTQ9Vf6Jd6nM4vjDAfdt2ieG7RZ2AfGdXE6C45NZhTWUqjcgpExccrEMzF"
    }
  ],
...
}

Or can we apply the same encodings to the didID and pubKey to produce the publicKeyMultibase and compare that with the one found in the resulting didDoc?

This seems to be the best ability to prove the verifiably of the didID without having to explicitly challenge the private key holder.

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

No branches or pull requests

1 participant