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

Record returned from a read or query always shows author as currently connected DID #231

Closed
kirahsapong opened this issue Sep 28, 2023 · 1 comment · Fixed by #290
Closed

Comments

@kirahsapong
Copy link
Contributor

Summary

If Alice writes a record to Alice's DWN, Alice will see did:alice in the record's author field. When Alice sends that record to Bob's DWN, and Bob retrieves the record from Bob's DWN, he'll see did:bob in the record's author field.

Steps to reproduce:

  1. Spin up a session for Alice and a session for Bob
  2. As Alice, write a record and log the record
  3. Send the record to Bob
  4. As Bob, query for the record and log the record
  5. Confirm each record's recordId is the same
  6. Observe each record's author field. Alice's copy will have her DID in the author field while Bob's copy will have his DID in the author field.

Expected behaviour:

Should both Alice's copy of the record and Bob's copy of the record reflect Alice's DID in the author field? Opening this issue for discussion, guidance, and/or addressing this use case here.

Additional information:

May or may not be related to the code here, which constructs the returned record where both author and target values are this.connectedDID

@kirahsapong
Copy link
Contributor Author

@frankhinek @mistermoe not sure if you've had a chance to peep this yet

@frankhinek frankhinek linked a pull request Nov 18, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant