TBD54566975 / dwn-sdk-js

Decentralized Web Node (DWN) Reference implementation
https://identity.foundation/decentralized-web-node/spec/
Apache License 2.0
326 stars 105 forks source link

Investigate if author is referenced correctly when latest state of a Records is not authored by the initial record author #630

Open thehenrytsai opened 1 year ago

thehenrytsai commented 1 year ago

Investigate if author is referenced correctly when latest state of a Records is not authored by the initial record author.

Add tests and fix any issues.

A couple of scenario to kick start the investigation:

  1. Alice is the author for initial write, then later Bob modified it. Alice should remain as the author for the record in reads and queries.
  2. In protocols, if a 3rd party modifies a record, the record author should still be the initial record author. Make sure there is no escalation of privilege such as the 3rd party can act as the author once they modify the record.
thehenrytsai commented 2 months ago

Will need to coordinate with #800 because there is deviation in terminology/concept between the two.