Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

Is there a certain way to commit a transaction using the Hyperledger Composer API once I insert or update an asset in a registry?

The reason why I ask this question is after I insert an asset, I can delete it from the registry using the Registry.Remove() API call. Given that data in the BlockChain should be indelible, how do I achieve this?

Of course, I can put ACL's to prevent a certain participant from accessing the delete transaction, but that is not making it truly indelible. What if the owner of the data wants to delete his/her action?!

Any thoughts?

1 Answer

0 votes
by (29.5k points)
edited by

When you use a Remove method on a Registry, you are removing the object (Asset or Participant) from the State Database. At the same time you are also writing a RemoveParticipant transaction to the Ledger. All transactions can then be queried / viewed.

So the object is indelibly on the Ledger, as is the record of its removal - but it does not appear in the current state.

You can check this yourself by working through the online Playground Tutorial, then create and delete a Participant (or Asset), then finally look at "All Transactions".

There is a lot more to learn than this. Enroll now in Blockchain Online Course to learn more.

Browse Categories

...