Skip to content

Commit

Permalink
Add Universal Resolver, did:ebsi, and did:sol implementations.
Browse files Browse the repository at this point in the history
* Add Universal Resolver implementations
* Prefix universal-resolver files
* Use all example dids
* Add did:ebsi and did:sol examples
  • Loading branch information
BernhardFuchs authored May 16, 2021
1 parent bdbba8c commit 5be2490
Show file tree
Hide file tree
Showing 34 changed files with 70 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ node_modules
package-lock.json
config.json
.idea
*.iml
41 changes: 37 additions & 4 deletions packages/did-core-test-server/suites/did-resolution/default.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
module.exports = {
"name": "7.1 DID Resolution",
"resolvers": [
name: '7.1 DID Resolution',
resolvers: [
require('../implementations/universal-resolver-did-ace.json'),
require('../implementations/universal-resolver-did-bba.json'),
require('../implementations/universal-resolver-did-bitxhub.json'),
require('../implementations/universal-resolver-did-btcr.json'),
require('../implementations/universal-resolver-did-ccp.json'),
require('../implementations/universal-resolver-did-ebsi.json'),
require('../implementations/universal-resolver-did-elem.json'),
require('../implementations/universal-resolver-did-ethr.json'),
require('../implementations/universal-resolver-did-evan.json'),
require('../implementations/universal-resolver-did-factom.json'),
require('../implementations/universal-resolver-did-gatc.json'),
require('../implementations/universal-resolver-did-github.json'),
require('../implementations/universal-resolver-did-hcr.json'),
require('../implementations/universal-resolver-did-icon.json'),
require('../implementations/universal-resolver-did-io.json'),
require('../implementations/universal-resolver-did-ion.json'),
require('../implementations/universal-resolver-did-jolo.json'),
require('../implementations/universal-resolver-did-key.json'),
require('../implementations/universal-resolver-did-kilt.json'),
require('../implementations/universal-resolver-did-lit.json'),
require('../implementations/universal-resolver-did-mpg.json'),
require('../implementations/universal-resolver-did-nacl.json'),
require('../implementations/universal-resolver-did-ont.json'),
require('../implementations/universal-resolver-did-schema.json'),
require('../implementations/universal-resolver-did-sol.json'),
require('../implementations/universal-resolver-did-sov.json'),
require('../implementations/universal-resolver-did-stack.json'),
require('../implementations/universal-resolver-did-trust.json'),
require('../implementations/universal-resolver-did-unisot.json'),
require('../implementations/universal-resolver-did-v1.json'),
require('../implementations/universal-resolver-did-vaa.json'),
require('../implementations/universal-resolver-did-web.json'),
require('../implementations/universal-resolver-did-work.json'),
require('../implementations/resolver-example-didwg.json'),
require('../implementations/resolver-3-3box-labs.json')/*,
require('../implementations/resolver-ethr-consensys-mesh.json')*/
]
}
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"implementation":"Universal Resolver","implementer":"Decentralized Identity Foundation and Contributors","expectedOutcomes":{"defaultOutcomes":[0],"invalidDidErrorOutcome":[],"notFoundErrorOutcome":[],"representationNotSupportedErrorOutcome":[],"deactivatedOutcome":[]},"executions":[{"function":"resolveRepresentation","input":{"did":"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3","resolutionOptions":{"accept":"application/did+ld+json"}},"output":{"didResolutionMetadata":{"didUrl":{"did":{"didString":"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3","method":"ace","methodSpecificId":"0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3","parseRuleCount":null,"parseTree":null},"didUrlString":"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3","fragment":null,"parameters":{},"parseRuleCount":null,"parseTree":null,"path":"","query":null},"driverUrl":"http://ace-did-driver:8080/1.0/identifiers/","duration":1071,"identifier":"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3","pattern":"^(did:ace:.+)$"},"didDocumentStream":"{\"@context\":\"https://www.w3.org/ns/did/v1\",\"created\":\"2020-07-14T08:25:15Z\",\"id\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3\",\"proof\":{\"created\":\"2020-07-14T08:25:16Z\",\"creator\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3#selfIssued-1\",\"signatureValue\":\"MEQCIDiWhWaHte+/G/9emToSx6JwYG7OWEGCm5u1P1QXUfs2AiAQzp+gO1nLaEMKHQ22bxxT9T9pnm0bIfYHbqeAHsKXxA==\",\"type\":\"LinkedDataSignature2015\"},\"publicKey\":[{\"controller\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3\",\"id\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3#selfIssued-1\",\"publicKeyJwk\":\"{\\\"kty\\\":\\\"EC\\\",\\\"crv\\\":\\\"secp256k1\\\",\\\"x\\\":\\\"qdVu4dIjLSS2A_dEp7DYovzoTgFSw309yLTrZanR0Mo\\\",\\\"y\\\":\\\"jAhMNEKzvITyyXIr12emFCz5SiCvSwT9qxTRKViKYFk\\\"}\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEqdVu4dIjLSS2A/dEp7DYovzoTgFSw309yLTrZanR0MqM\\nCEw0QrO8hPLJcivXZ6YULPlKIK9LBP2rFNEpWIpgWQ==\\n-----END PUBLIC KEY-----\",\"type\":\"EcdsaSecp256k1VerificationKey2019\"},{\"controller\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3\",\"id\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3#selfIssued-2\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmefTYRNzfzrmy7rnyf8WrGg0AnS9McZc\\n79xN9W901R4G9U7Ci36N216dhkQS2FiTzYjlcHwDnv8X7lkN1LokfFRR0Q96m11nrvbkmd4lrTsa\\nngGHZm+9lLSrjlAbXO+h6lA7aPK0/Vu0HZtdEmXF8RzsxjHhwY6U8hgGGotTjEPL96Zntc5fCB52\\nCJMGof+sg5xnu8PxW2/z4Pqkw0n6JWhqg8xVy+vq0FYqtbLOKPHpfSKECG7PnNYqImlnHRQd5r+j\\nEtMPFkrT78Unm9lPWIhuVyt1S17hmkJColBNsO+f0G1NE1FE+RALcrZ99Mjc9sb9BYK7L1qk9RW7\\n2nLmIBrpu327ZPYQA765bYKLIUq3ItmqR14KlKGHPmlIe6tEE8XrRxT2HYShB19xgLL9tgSkr+wd\\nNXmzCSM1GFTMkRh3mOa3BZvqnVgSaJjjeMilPzTDNcbHRqEsj9qbx35Svi02qINBLuXGLQTCitto\\nCqfOcxvn37e6QMcLXXkfraOGLhk4RGrjUvvlLN1YmOJdbqeczuIhIdn2ylER4y2ZKYZidjcnUvug\\ndF3reduTQscwUV9ZObs13awtjVaAZxnb1DOXu5iKDutqoH+T44JVYAZTYubyyHk2zekO+aTRYMSw\\nYKpbqMPbfI9TJ4Nt0RB4QLW/ibBMdH/+FIA10y3TBsUCAwEAAQ==\\n-----END PUBLIC KEY-----\",\"type\":\"RsaVerificationKey2018\"},{\"controller\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3\",\"id\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3#iot-1\",\"publicKeyJwk\":\"{\\\"kty\\\":\\\"EC\\\",\\\"crv\\\":\\\"secp256k1\\\",\\\"x\\\":\\\"z2u9bUwDLvDwu6kn5IJ6ualJ75Et7BaAyVhBEhulVPc\\\",\\\"y\\\":\\\"ANg2Wl2VE5PthKYqV7xKTMOVlUmOnRV4GISLYfbuW0o\\\"}\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEz2u9bUwDLvDwu6kn5IJ6ualJ75Et7BaAyVhBEhulVPcA\\n2DZaXZUTk+2EpipXvEpMw5WVSY6dFXgYhIth9u5bSg==\\n-----END PUBLIC KEY-----\",\"type\":\"EcdsaSecp256k1VerificationKey2019\"},{\"controller\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3\",\"id\":\"did:ace:0xf81c16a78b257c10fddf87ed4324d433317169a005ddf36a3a1ba937ba9788e3#selfIssued-3\",\"publicKeyJwk\":\"{\\\"kty\\\":\\\"EC\\\",\\\"crv\\\":\\\"P-256\\\",\\\"x\\\":\\\"bAjFl3tl5IbSwPTw8viMoO9RTMpLTcezAfcZU7C4zmI\\\",\\\"y\\\":\\\"3AFDqy8mBJcHZgoHjcidhX-l7zdgbYEZQa5zpxwfJ7k\\\"}\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEbAjFl3tl5IbSwPTw8viMoO9RTMpLTcezAfcZU7C4\\nzmLcAUOrLyYElwdmCgeNyJ2Ff6XvN2BtgRlBrnOnHB8nuQ==\\n-----END PUBLIC KEY-----\",\"type\":\"EcdsaSecp256r1VerificationKey2019\"}],\"updated\":\"2020-07-14T08:25:15Z\"}","didDocumentMetadata":{}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"implementation":"Universal Resolver","implementer":"Decentralized Identity Foundation and Contributors","expectedOutcomes":{"defaultOutcomes":[0,1],"invalidDidErrorOutcome":[],"notFoundErrorOutcome":[],"representationNotSupportedErrorOutcome":[],"deactivatedOutcome":[]},"executions":[{"function":"resolveRepresentation","input":{"did":"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044","resolutionOptions":{"accept":"application/did+ld+json"}},"output":{"didResolutionMetadata":{"didUrl":{"did":{"didString":"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044","method":"bba","methodSpecificId":"47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044","parseRuleCount":null,"parseTree":null},"didUrlString":"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044","fragment":null,"parameters":{},"parseRuleCount":null,"parseTree":null,"path":"","query":null},"driverUrl":"http://bba-did-driver:8080/1.0/identifiers/","duration":1439,"identifier":"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044","pattern":"^(did:bba:.+)$"},"didDocumentStream":"{\"@context\":[\"https://www.w3.org/ns/did/v1\",\"https://w3id.org/security/v1\"],\"id\":\"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044\",\"publicKey\":[{\"id\":\"did:bba:47ef0798566073ea302b8178943aaa83f227614d6f36a4d2bcd92993bbed6044#z6MkeV3RcLrU6t3XXA1ivvxBGHu8Wzr7g4LmbgrmBJWLeECW\",\"publicKeyBase58\":\"12nP26c2mLZ4QfB2FMzLRCM8hRaGGB6QufwqM2YKj1R8\",\"type\":\"Ed25519VerificationKey2018\"}]}","didDocumentMetadata":{}}},{"function":"resolveRepresentation","input":{"did":"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf","resolutionOptions":{"accept":"application/did+ld+json"}},"output":{"didResolutionMetadata":{"didUrl":{"did":{"didString":"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf","method":"bba","methodSpecificId":"t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf","parseRuleCount":null,"parseTree":null},"didUrlString":"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf","fragment":null,"parameters":{},"parseRuleCount":null,"parseTree":null,"path":"","query":null},"driverUrl":"http://bba-did-driver:8080/1.0/identifiers/","duration":1809,"identifier":"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf","pattern":"^(did:bba:.+)$"},"didDocumentStream":"{\"@context\":[\"https://www.w3.org/ns/did/v1\",\"https://w3id.org/security/v1\"],\"authentication\":[{\"id\":\"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf#zAHd7ePaivnaJLK6feRrmrt1JJZb1t6EdeXrhH63hkn4zpAf3\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\r\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5rdiNoPlx9PkJ3mCrRB5\\r\\nWckY5AArfMo5OI4TGP+nN74/tVY2xffyb9CZiJqpfNaYAXcXWJuX/brzYeMaa+sA\\r\\nbFkOMpY4LwHqYZmOrUWvpW/KcTOfvydOwzRjLjVHmWjHeCy5TdupU649r/YRYjKE\\r\\niPFh9RanXEbKeTDozyoEcrqdmW3onqFJ+U+b7kUd9ys0y5lf9F/mZmFrP+SZp0D6\\r\\nKgZC/jUR/ACaSv0jdb710BGROobvanTwXr7dLPVKZxbHAnlnftQ5+4Cjy5zxZO8o\\r\\n/KjKLSjPuO4l55Pth2oLPH7XT+PFUu/ejva1TcgpJooE96ODHLxmO94dgVxFdvtS\\r\\neQIDAQAB\\r\\n-----END PUBLIC KEY-----\\r\\n\",\"type\":\"RsaVerificationKey2018\"}],\"id\":\"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf\",\"service\":[{\"id\":\"did:bba:t:45e6df15dc0a7d91dcccd24fda3b52c3983a214fb0eed0938321c11ec99403cf#openid\",\"serviceEndpoint\":\"https://openid.example.com/\",\"type\":\"OpenIdConnectVersion1.0Service\"}]}","didDocumentMetadata":{}}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"implementation":"Universal Resolver","implementer":"Decentralized Identity Foundation and Contributors","expectedOutcomes":{"defaultOutcomes":[0],"invalidDidErrorOutcome":[],"notFoundErrorOutcome":[],"representationNotSupportedErrorOutcome":[],"deactivatedOutcome":[]},"executions":[{"function":"resolveRepresentation","input":{"did":"did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013","resolutionOptions":{"accept":"application/did+ld+json"}},"output":{"didResolutionMetadata":{"didUrl":{"did":{"didString":"did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013","method":"bitxhub","methodSpecificId":"appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013","parseRuleCount":null,"parseTree":null},"didUrlString":"did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013","fragment":null,"parameters":{},"parseRuleCount":null,"parseTree":null,"path":"","query":null},"driverUrl":"http://driver-did-bitxhub:8080/1.0/identifiers/","duration":10387,"identifier":"did:bitxhub:appchain001:0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013","pattern":"^(did:bitxhub:.+)$"},"didDocumentStream":"{\"code\":-10000,\"message\":\"send tx error: chosen client is not reachable\"}","didDocumentMetadata":{}}}]}
Loading

0 comments on commit 5be2490

Please sign in to comment.