ion icon indicating copy to clipboard operation
ion copied to clipboard

Retrieve a DID object using the DID URI and make an update operation

Open Ichigo85 opened this issue 2 years ago • 1 comments

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:

  1. 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 ---
  2. 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.

Same issue posted here

Ichigo85 avatar Sep 28 '22 08:09 Ichigo85

+1 this would be nice - for some reason updating a ION DID is much more complicated once you lose the initial object.

marek5050 avatar Oct 15 '22 00:10 marek5050

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.

Ekiwoulf avatar Nov 23 '22 16:11 Ekiwoulf

@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.

frankhinek avatar Jan 29 '23 23:01 frankhinek

Hello @frankhinek ! Thank you very much for your updated example. Closing the issue now :)

Ichigo85 avatar Mar 07 '23 10:03 Ichigo85