TBD54566975 / dwn-sdk-js

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

Add protocol-tagging index to `RecordsDelete` PermissionProtocol messages #768

Open LiranCohen opened 2 months ago

LiranCohen commented 2 months ago

Since permission messages are their own built-in protocol, we currently add a protocol RecordsTag to the RecordsWrite messages associated with PermissionGrant, PermissionRequest and PermissionRevocation messages. This tag references the protocol which the request/grant/revocation is scoped to, allowing indexing and querying all messages related to a particular protocol.

Although permission messages are typically not deleted, we should also tag the RecordsDelete messages as well.