Open lemoustachiste opened 3 years ago
I also can't create did:ion:test on testnet. It returned did:ion only despite I run testnet.
"...using the default resolution endpoint from ION I get a 500 or 400 error"
Can you clarify what you mean by "default resolution endpoint from ION?
I notice the DID generated with the default endpoint is not a test DID; does that mean it's a mainnet transaction?
The test
prefix is mostly a cosmetic one, the actual payload between the two networks is the same.
is the ion:test method available on the universal resolver?
I am unsure what exactly is the "universal resolver"?
Is there a way to retrieve the tx data of the bitcoin transaction associated with a DID?
Yes, every bitcoin transaction hash is logged at time it is being broadcasted. Also each transaction containing ION operation(s) is recorded in the mongodb's transactions
table which contains the block number/hash, anchor string etc which should allow you to find the transaction you are interested in.
Should I be able to see some files on my local IPFS (no files are listed currently)?
You should be able to see some files in your local files system for sure. But if you are viewing via the IPFS web UI, it does not those content, unsure why, I will raise question this with IPFS.
How can I track propagation of a DID to other ION nodes?
Propagation is more of an organic process that no one person can control as per nature of a decentralized system. But you could test to see who in IPFS that you are connected to has any given IPFS file by issuing the following IPFS command:
ipfs dht findprovs <file hash>
where the file hash can be simply the "hash portion" of the anchor string found in the transactions
table in mongodb.
Thank you for your answers. I'm having the same issue than @napoleon211092.
I am unsure what exactly is the "universal resolver"?
I think @lemoustachiste meant https://dev.uniresolver.io/
Hi @thehenrytsai,
thanks for getting back to me.
Can you clarify what you mean by "default resolution endpoint from ION?
Sure, I mean this one: https://beta.ion.msidentity.com/api/v1.0. Being called from my local machine, after the DID creation. I assume it does not propagate to the outer world (I am able to resolve it when I call the local API (on :3000
).
I am unsure what exactly is the "universal resolver"?
What @raiseandfall said, or this one for that matter: https://resolver.identity.foundation/ (more stable version of previously mentioned). It is also available to run locally (https://github.com/decentralized-identity/universal-resolver). I know that did:ion is available there, but curious about did:ion:test.
Yes, every bitcoin transaction hash is logged at time it is being broadcasted. Also each transaction containing ION operation(s) is recorded in the mongodb's transactions table which contains the block number/hash, anchor string etc which should allow you to find the transaction you are interested in.
Thanks, that's the kind of information I was looking for.
Propagation is more of an organic process that no one person can control as per nature of a decentralized system. But you could test to see who in IPFS that you are connected to has any given IPFS file by issuing the following IPFS command: ipfs dht findprovs
where the file hash can be simply the "hash portion" of the anchor string found in the transactions table in mongodb.
Thanks again, I need this guidance as I am little familiar with the internals of IPFS and it's not on my immediate schedule to have time to dedicate to learning, unfortunately.
I'll keep you posted
Hey,
so it's not so much a bug but rather a call for assistance.
I am trying to get a testnet DID published from my local machine's node and resolvable with the DIF universal resolver.
So I followed the steps from https://github.com/decentralized-identity/ion/blob/master/install-guide.md#inbound-ports-to-open, and also from https://docs.ipfs.io/how-to/nat-configuration which essentially says the same thing.
I have opened the ports (4001 > 4003) on my wifi router and redirected them to my machine, port 5001 as per my local IPFS configuration.
Now the one I had created before, but does not seem to exist elsewhere than on my machine (and thus not resolvable in the wild), I can still resolve locally.
I have then generated a new DID document using the same wallet, but this with ports open.
Here is what I see from
npm run core
:The response to the client:
I can then find it from my local machine (
localhost:3000/identifiers/did:ion:test:EiClVrnaJFb3t3j2Cl8nrWbuyBWYwNAonktL3d4JIePRUA
)But from the universal resolver, or using the default resolution endpoint from ION I get a 500 or 400 error. Conversely I am not able to resolve a DID that I generated with the default ION endpoint from my local node (i.e: did:ion:EiD67XeFDwOoWM-kHktsm_z5BimilasvRaL1JiHKHdqrOA).
So a list of questions arises:
test
DID; does that mean it's a mainnet transaction?ion:test
method available on the universal resolver?Thanks