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

Clarify integrity protection / use of hashlinks #82

Open
nikolockenvitz opened this issue Sep 12, 2023 · 1 comment
Open

Clarify integrity protection / use of hashlinks #82

nikolockenvitz opened this issue Sep 12, 2023 · 1 comment

Comments

@nikolockenvitz
Copy link

The spec outlines a basic concept for integrity protection, but it leaves a few important aspects unclear.

did-method-web/index.html

Lines 533 to 551 in 3302643

<section>
<h3>
DID Document Integrity Verification
</h3>
<p>
Additional mechanisms such as <a
href="https://tools.ietf.org/html/draft-sporny-hashlink">Hashlinks</a>
MAY be utilized to aid in integrity protection and verification of the
DID document.
<br />
Under such a scenario the hash of the DID document could be recorded
to a trusted or distributed store and the retriever of the DID
document would generate a hash of the DID document in their posession
with the hash retrieved to ensure that no tampering with the DID
document had occurred.
</p>
</section>

Like, how would the verifier know, which registry is used to store the hashes and who is authorized to add hashes for the corresponding DID?
This should be clearly defined in a spec (did web or an extension to it) and if some of the information can be dynamic (e.g., where the hashes are stored), it may be part of the DID URL itself.
Without further specification how integrity protection works in detail, I don't see how it helps at all to protect integrity of the DID documents.

Is there an implementation of this approach or more details that you could provide?

@dmitrizagidulin
Copy link
Collaborator

@nikolockenvitz Great questions. I think I added that section to the spec as a general "future work" sort of item?
But there has been a lot of discussion on this since then.
And some of it is even captured here https://github.com/WebOfTrustInfo/rwot12-cologne/blob/main/advance-readings/did-web-2.0.md#self-certifying-hash-in-did-url -- which is a proposed paper for next week's Rebooting Web of Trust conference.

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

2 participants