Skip to content

Should the witness proofs be put into the DID Log? #226

Open
@swcurran

Description

@swcurran

From @stormer78

Would be faster and easier as one file to retrieve and keep full witness history in the one file? No need to remove previous proofs as I could see for auditing purposes others may want to see witness proofs if retrieving a specific ID or representation at point in time.

As you don't publish the DID LogEntry until you have confirmed the witness proofs, it works to streamline and combine them.

Option A: Proofs are part of a LogEntry itself
Option B: each line in the file can be either a LogEntry or a ProofEntry (which would contain the witness proofs) for the entry above. Easy to deserialize into the correct format and then it comes down to a client side decision if they want to check every witness proof, or if they just test the latest LogEntry and ensure the witness proofs match.

I can't think of how the above would lower the security posture of webvh, if anything full witness history makes it more robust than trying to piece together point in time state with missing data.

Bytes are cheap... Running some scale tests, curious to see how it performs when there are hundreds or thousands of log entries - may parallel implement a few options and provide some data on performance aspects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions