dhiway/cord-agent-app-v1

How is recordDelete different from recordRevoke?

ishivanshgoel opened this issue · 2 comments

export async function recordDelete(

As I got anchor as an optional field in recordCreate(), there is a chance, someone may just add data first, and then 'anchor' it to ledger later point in time.

Only when a record is anchored, you can 'revoke' it. Only when its anchored, it is in ledger, and the trace should be present in agent too. If its not anchored, we can technically remove the record, and hence a separate recordDelete.

Want to pick this and #14 up but as you are working on POC, will wait till #20 gets merged.