ion
ion copied to clipboard
Retrieve a DID object using the DID URI and make an update operation
Hello, I am really new to this project. I am trying to create a DID object in my local ION node, publish it and then make an update, to see if the new DID resolved returns the data I expect. I noticed two things:
- If I lose the DID object of the published DID, how can I retrieve it with its ION-tools functions? --- I solved it using ion-sdk, but I think it could be useful anyway ---
- After making an update, waiting for it to be published successfully, if I fetch the DID, I can't find any new data.
I made an example of my code here
What am I missing? The update transaction and operation are committed in mongoDb database and bitcoin node, but the resolved DID returns the 'first creation' did data.
+1 this would be nice - for some reason updating a ION DID is much more complicated once you lose the initial object.
Hi,
+1, I can't update my ION DID. I am able to create and deactivate, but for some reason the update don't work.
If someone can give help, that would be great.
@Ichigo85 @marek5050 @Ekiwoulf The ION Tools README updated with complete working example of creating an updating an ION DID.
I also created an example repo that has detailed versions of create and update operations: https://github.com/frankhinek/did-ion-examples
Let me know if this resolves the open questions. Thanks.
Hello @frankhinek ! Thank you very much for your updated example. Closing the issue now :)