decentralized-identity / universal-resolver-frontend

Frontend web UI for Universal Resolver.
https://uniresolver.io/
Apache License 2.0
25 stars 26 forks source link

ccp driver not work #7

Open hello2mao opened 4 years ago

hello2mao commented 4 years ago

When resolving example did did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw, we got following error: image

However, when I resolve it locally use curl like below, it success.

curl http://localhost:8080/1.0/identifiers/did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw
{"redirect":null,"didDocument":{
  "@context" : "https://www.w3.org/2019/did/v1",
  "id" : "did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw",
  "service" : [ {
    "type" : "DIDResolve",
    "serviceEndpoint" : "https://did.baidu.com"
  } ],
  "authentication" : [ {
    "type" : "Secp256k1",
    "publicKey" : [ "did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw#key-1" ]
  } ],
  "publicKey" : [ {
    "id" : "did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw#key-1",
    "type" : "Secp256k1",
    "publicKeyHex" : "046fcbedd1107ca45be3e81fc445e5a366886a89e7087fe3d128e6236302f31594740f250433ebe9f0abcbd04dbf9c5979e270a0772ad1cc502cec2d5de9504c8c"
  }, {
    "id" : "did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw#key-2",
    "type" : "Secp256k1",
    "publicKeyHex" : "0496712d16b0836684aacd5ab6ba3d489c35efa31f414a1c6a455fc6b37ff28e5fa97ac29c1021b76e5b78e2bbceac1dfc4ec98e6b2b3e65a29f7f1cd4944dfb93"
  } ]
},"resolverMetadata":null,"methodMetadata":{"version":2,"proof":{"creator":"did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw#key-1","type":"Secp256k1","signatureValue":"30440220211ffc76ae2858d6baa29faa9b576d6b2e048e8f4f7767ee1c2fba7ae6c2a78102205f5b56cd1431830b45109d716631638d961e5b252c2c2354d8bb96782d8a62ef"},"created":"2019-10-21T11:12:13.065Z","updated":"2019-10-21T11:17:49.379Z"}}%

@peacekeeper hi, Could you help me with this problem? Thanks a lot

peacekeeper commented 4 years ago

@hello2mao I'm sorry, it looks like I accidentally broke the port configuration in https://github.com/decentralized-identity/universal-resolver/commit/8ef5b5a85dca99cc2bb3111341de5e9a448ede6e.

Should be fixed now with https://github.com/decentralized-identity/universal-resolver/commit/6b1a3ac233ff914dda106cf6466b00c0a8dab379.

https://uniresolver.io/#did:work:2UUHQCd4psvkPLZGnWY33L should also be working again.

hello2mao commented 4 years ago

@hello2mao I'm sorry, it looks like I accidentally broke the port configuration in decentralized-identity/universal-resolver@8ef5b5a.

Should be fixed now with decentralized-identity/universal-resolver@6b1a3ac.

https://uniresolver.io/#did:work:2UUHQCd4psvkPLZGnWY33L should also be working again.

@peacekeeper Thanks ^_^.

/close

hello2mao commented 4 years ago

@peacekeeper Need help again. ccp did driver not work. See: https://uniresolver.io/#did:ccp:ceNobbK6Me9F5zwyE3MKY88QZLw

And local resolve is OK with latest master.