How is recordDelete different from recordRevoke?
ishivanshgoel opened this issue · 2 comments
ishivanshgoel commented
cord-agent-app-v1/src/record_controller.ts
Line 223 in 6188183
amarts commented
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
.
ishivanshgoel commented