Closed sgreenbury closed 1 year ago
Traits in green. Structs in orange.
Done in PR #105.
VerifiableTimestamp
has been turned into a trait, which is a wrapper for a pair of independent commitments, one committing to DID document content and the other to a timestamp.
The verify
method in VerifiableTimestamp
has a default implementation which verifies each of the two commitments against the same target hash, thereby confirming that the timestamp is immutably associated with the DID document content.
Closed with #108
Qs:
VerifiableTimestamp
looks very similar toTimestampCommitment
; are both needed?verify_content
method inVerifiableTimestamp
verifies the expected data in the DID commitment; is this the cleanest way to do it? (at least this is validating the content, not verifying it)VerifiableTimestamp
as a trait (without theverify_content
method), which is implemented byTimestampCommitment
?validate_pow_hash
is called as part of the content verification procedure?First step will be to draw a diagram of the commitments & related traits.