- From: jonnycrunch <notifications@github.com>
- Date: Tue, 12 Feb 2019 13:11:15 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3ctag/design-reviews/issues/216/462936405@github.com>
@hadleybeeman: "type the DID into the URL bar in a browser":
http curl example for `did:ipid:12D3KooWMHdrzcwpjbdrZs5GGqERAvcgqX3b5dpuPtPa9ot69yew`
curl -s https://ipfs.io/api/v0/name/resolve?arg=12D3KooWMHdrzcwpjbdrZs5GGqERAvcgqX3b5dpuPtPa9ot69yew
> {"Path":"/ipld/zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY"}
followed by:
curl -s https://ipfs.io/api/v0/dag/get?arg=zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY
>
`{
"@context": {
"/": "zdpuAqceEaefp2YLbsyVaoJk8NH47qJvomsd1WouNC1CVYTZn"
},
"control": [
{
"signer": [
"did:eth:0xd3382e07f2173270ef43817ab1b4e1cdeb36f23b",
"did:sov:8uQhQMGzWxR8vw5P3UWH1j",
"did:ipid:QmcEF77C6QKj6Rzru7MR2N5tSM33PHQYEqXYzQuVHHAvvv"
],
"type": "OrControl"
}
],
"created": "2017-09-24T17:00:00Z",
"id": "did:ipid:QmcEF77C6QKj6Rzru7MR2N5tSM33PHQYEqXYzQuVHHAvvv",
"owner": [
{
"curve": "ed25519",
"expires": "2017-11-08T16:02:20Z",
"id": "did:ipid:QmcEF77C6QKj6Rzru7MR2N5tSM33PHQYEqXYzQuVHHAvvv",
"publicKeyBase64": "lji9qTtkCydxtez/bt1zdLxVMMbz4SzWvlqgOBmURoM=",
"type": [
"CryptographicKey",
"EdDsaPublicKey"
]
},
{
"expires": "2019-03-22T00:00:00Z",
"id": "did:ipid:QmcEF77C6QKj6Rzru7MR2N5tSM33PHQYEqXYzQuVHHAvvv",
"publicKeyPem": "----BEGIN PUBLIC KEY-----\r\nMIIBOgIBAAJBAKkbSUT9/Q2uBfGRau6/XJyZhcF5abo7b37I5hr3EmwGykdzyk8GSyJK3TOrjyl0sdJsGbFmgQaRyV\r\n-----END PUB",
"type": [
"CryptographicKey",
"RsaPublicKey"
]
}
],
"previous": {
"/": "zdpuArY8PA81cxdoNqsP42xT5itMHi6savk7GReyaVxBoCgkv"
},
"proof": "did:eth:0x37aea9fdc10874d4048806187cbf6325ee102018",
"serviceEndPoints": [
{
"didAuth": "/ip4/108.241.29.84/tcp/1265/ipfs/QmZTefe4V1KYwLUfhGVMMBbAkAa4E9vynzSNx5vPtrG4dv"
},
{
"didAuth": "/ip4/37.120.35.245/tcp/1265/ipfs/Qmcfd7YfViNyxa4LZ2ubrubKa2cPYzeL8pN9E7emPSAVk4"
}
],
"signature": {
"created": "2016-02-08T16:02:20Z",
"creator": "did:ipid:QmeJGfbW6bhapSfyjV5kDq5wt3h2g46Pwj15pJBVvy7jM3",
"signatureValue": "IOmA4R7TfhkYTYW87z640O3GYFldw0yqie9Wl1kZ5OBYNAKOwG5uOsPRK8/2C4STOWF+83cMcbZ3CBMq2/gi25s=",
"type": "ed25519Signature2017"
},
"updated": "2018-07-09T02:41:00Z"
}`
also can validate that the same content ID:
curl -s https://ipfs.io/api/v0/dag/get\?arg\=zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY | ipfs dag put
> zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY
Does not depend on any single provider, could also be done via localhost, Cloudflare's server or any other gateway that supports the method resolution.
https://ipfs.infura.io/api/v0/dag/get?arg=zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY
http://localhost:5001/api/v0/name/resolve?arg=12D3KooWMHdrzcwpjbdrZs5GGqERAvcgqX3b5dpuPtPa9ot69yew
http://localhost:5001/api/v0/dag/get?arg=zdpuAyyen4DeAzm2pvc3h9TP3qkCnYUYN1sa9kSu9Tcub1XoY
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/216#issuecomment-462936405
Received on Tuesday, 12 February 2019 21:11:38 UTC