Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Apr 14, 2020
1 parent ebb5c33 commit a9a5206
Show file tree
Hide file tree
Showing 66 changed files with 26,581 additions and 14,723 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
node_modules
.vscode
attic
File renamed without changes.
25 changes: 25 additions & 0 deletions contexts/did-configuration-v0.1.md
@@ -0,0 +1,25 @@
# DID Configuration Context

- [Latest JSON-LD Context](./did-configuration-v0.0.jsonld)

### Terminology

<h4 id="domainLinkageAssertion"><a href="#domainLinkageAssertion">domainLinkageAssertion</a></h4>

A claim object with fields for domain linkage assertions.

<h4 id="domain"><a href="#domain">domain</a></h4>

The domain being claimed to be linked to the DID in the domainLinkageAssertion.

<h4 id="entries"><a href="#entries">entries</a></h4>

The list of did entities that are linked with this domain configuration by vc data model proofs.

<h4 id="did"><a href="#did">did</a></h4>

A decentralized identifier that is linked via a domain linkage assertion vc.

<h4 id="vc"><a href="#vc">vc</a></h4>

A verifiable credential proof for domain linkage assertion. Must be a valid VC-JWT or Linked Data Credential.
63 changes: 39 additions & 24 deletions did-configuration.json
@@ -1,34 +1,49 @@
{
"@context": "https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld",
"entries": [
"eyJraWQiOiJkaWQ6d2ViOmlkZW50aXR5LmZvdW5kYXRpb24jX1FxMFVMMkZxNjUxUTBGamQ2VHZuWUUtZmFIaU9wUmxQVlFjWV8tdEE0QSIsImFsZyI6IkVkRFNBIn0.eyJzdWIiOiJkaWQ6d2ViOmlkZW50aXR5LmZvdW5kYXRpb24iLCJpc3MiOiJkaWQ6d2ViOmlkZW50aXR5LmZvdW5kYXRpb24iLCJuYmYiOjE1ODY4MTQyOTIsImV4cCI6MTU4OTQwNjI5MiwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiLCJodHRwczovL2lkZW50aXR5LmZvd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c3RlbjpFaUJKSlBkby1PTkYwanhxdDhtWllFajlaN0ZiZEM4N20yeHZOMF9IQWJjb0VnIiwiaXNzdWFuY2VEYXRlIjoiMjAyMC0wNC0xM1QxNjo0NDo1Mi0wNTowMCIsImV4cGlyYXRpb25EYXRlIjoiMjAyMC0wNS0xM1QxNjo0NDo1Mi0wNTowMCIsInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJEb21haW5MaW5rYWdlQ3JlZGVudGlhbCJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJpZCI6ImRpZDplbGVtOnJvcHN0ZW46RWlCSkpQZG8tT05GMGp4cXQ4bVpZRWo5WjdGYmRDODdtMnh2TjBfSEFiY29FZyIsImRvbWFpbiI6ImlkZW50aXR5LmZvdW5kYXRpb24ifX19.uHcj6Oxhe3XNWOGAtXbGL1ITvr1yhDx-pvujdDhBj57LJqVFBnWw2-rzf1qedCdaMvGjV_Clh_I-9-hgFXobFw",
{
"did": "did:key:z6Mktts3kfFWDrURs7fNpayz24LZeCGNvCaFMC6KkbeYpZvi",
"vc": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld"
],
"id": "https://example.com/credentials/0",
"type": ["VerifiableCredential", "DomainLinkageAssertion"],
"issuer": "did:key:z6Mktts3kfFWDrURs7fNpayz24LZeCGNvCaFMC6KkbeYpZvi",
"issuanceDate": "2019-12-02T15:08:37.751Z",
"credentialSubject": {
"domainLinkageAssertion": {
"domain": "identity.foundation"
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2020-01-31T21:02:49Z",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..ByLGBlulPIH2N-WwQvdNejEQoAQb5kk11hDn_Palp8QcGssOo19Vc6TYSUkCAV7BpzHGclZNdQaY5D98krojAw",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6Mktts3kfFWDrURs7fNpayz24LZeCGNvCaFMC6KkbeYpZvi#z6Mktts3kfFWDrURs7fNpayz24LZeCGNvCaFMC6KkbeYpZvi"
}
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld"
],
"issuer": "did:key:z6MkjRagNiMu91DduvCvgEsqLZDVzrJzFrwahc4tXLt9DoHd",
"issuanceDate": "2020-04-13T16:44:52-05:00",
"expirationDate": "2020-05-13T16:44:52-05:00",
"type": ["VerifiableCredential", "DomainLinkageCredential"],
"credentialSubject": {
"id": "did:key:z6MkjRagNiMu91DduvCvgEsqLZDVzrJzFrwahc4tXLt9DoHd",
"domain": "identity.foundation"
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2020-04-14T02:49:42Z",
"verificationMethod": "did:key:z6MkjRagNiMu91DduvCvgEsqLZDVzrJzFrwahc4tXLt9DoHd#z6MkjRagNiMu91DduvCvgEsqLZDVzrJzFrwahc4tXLt9DoHd",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..WcAEoRHQl0b7ajn7V2fI9s7nO7SJOrsR6aB-p6OZsAd_xUnRlGbmqf3cjMmxUR3v1qSBpPEThS3dhfDt0SD2BA"
}
},
{
"did": "did:elem:EiChaglAoJaBq7bGWp6bA5PAQKaOTzVHVXIlJqyQbljfmg",
"vc": "eyJhbGciOiJFUzI1NksiLCJraWQiOiJxZmtubVZEaE1pM1VjMTkwSUhCUmZCUnFNZ2JFRUJSeldPajFFOUVtendNIn0.eyJzdWIiOiJkaWQ6ZWxlbTpFaUNoYWdsQW9KYUJxN2JHV3A2YkE1UEFRS2FPVHpWSFZYSWxKcXlRYmxqZm1nIiwiaXNzIjoiZGlkOmVsZW06RWlDaGFnbEFvSmFCcTdiR1dwNmJBNVBBUUthT1R6VkhWWElsSnF5UWJsamZtZyIsIm5iZiI6MTU4MDUwNDU3MCwiZXhwIjo1MTgwNTAwOTcwLCJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSIsImh0dHBzOi8vaWRlbnRpdHkuZm91bmRhdGlvbi8ud2VsbC1rbm93bi9jb250ZXh0cy9kaWQtY29uZmlndXJhdGlvbi12MC4wLmpzb25sZCJdLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiRG9tYWluTGlua2FnZUFzc2VydGlvbiJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJkb21haW5MaW5rYWdlQXNzZXJ0aW9uIjp7ImRvbWFpbiI6ImlkZW50aXR5LmZvdW5kYXRpb24ifX19LCJpYXQiOjE1ODA1MDQ1NzB9.flXN6974n0wDEEk5nev2Ec4b3diohQEWG2Kb-lSC77pBjyTYmW4bbDRnsPdntq9E4Y1ZaCuaFeOzopeCjQ1emA"
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld"
],
"issuer": "did:web:vc.transmute.world",
"issuanceDate": "2020-04-13T16:44:52-05:00",
"expirationDate": "2020-05-13T16:44:52-05:00",
"type": ["VerifiableCredential", "DomainLinkageCredential"],
"credentialSubject": {
"id": "did:web:vc.transmute.world",
"domain": "identity.foundation"
},
"proof": {
"type": "JsonWebSignature2020",
"created": "2020-04-14T02:49:43Z",
"verificationMethod": "did:web:vc.transmute.world#4SZ-StXrp5Yd4_4rxHVTCYTHyt4zyPfN1fIuYsm6k3A",
"proofPurpose": "assertionMethod",
"jws": "eyJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdLCJhbGciOiJFUzI1NksifQ..9fLNgE2KhEfRNuFriKIRA8Fdqn7RD8GQCdgpfQBC8vRC5_XTnHOQUUY9hns-gHpaDVkJCP_3sXK5A7khytxvVg"
}
}
]
}
41 changes: 12 additions & 29 deletions did.json
@@ -1,40 +1,23 @@
{
"@context": "https://w3id.org/did/v1",
"@context": ["https://www.w3.org/ns/did/v1"],
"id": "did:web:identity.foundation",
"publicKey": [
"assertionMethod": [
{
"id": "did:web:identity.foundation#ethereum",
"type": "Secp256k1VerificationKey2018",
"controller": "did:web:identity.foundation",
"ethereumAddress": "0xb9c5714089478a327f09197987f16f9e5d936e8a"
},
{
"id": "did:web:identity.foundation#satoshi",
"type": "EcdsaSecp256k1VerificationKey2019",
"controller": "did:web:identity.foundation",
"publicKeyHex": "03195588392023a8a3af506660439d555971f0447b63616aa3c8272761310cf960"
},
{
"id": "did:web:identity.foundation#key-JUvpllMEYUZ2joO59UNui_XYDqxVqiFLLAJ8klWuPBw",
"type": "EcdsaSecp256k1VerificationKey2019",
"id": "did:web:identity.foundation#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A",
"type": "JwsVerificationKey2020",
"controller": "did:web:identity.foundation",
"publicKeyJwk": {
"crv": "secp256k1",
"kid": "JUvpllMEYUZ2joO59UNui_XYDqxVqiFLLAJ8klWuPBw",
"kty": "EC",
"x": "dWCvM4fTdeM0KmloF57zxtBPXTOythHPMm1HCLrdd3A",
"y": "36uMVGM7hnw-N6GnjFcihWE3SkrhMLzzLCdPMXPEXlA"
"crv": "Ed25519",
"x": "VCpo2LMLhn6iWku8MKvSLg2ZAoC-nlOyPVQaO3FxVeQ",
"kty": "OKP",
"kid": "did:web:identity.foundation#_Qq0UL2Fq651Q0Fjd6TvnYE-faHiOpRlPVQcY_-tA4A"
}
}
],
"authentication": [
{
"type": "Secp256k1SignatureAuthentication2018",
"publicKey": "did:web:identity.foundation#ethereum"
},
{
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKey": "did:web:identity.foundation#satoshi"
"id": "did:web:identity.foundation#z6Mktts3kfFWDrURs7fNpayz24LZeCGNvCaFMC6KkbeYpZvi",
"controller": "did:web:identity.foundation",
"type": "Ed25519VerificationKey2018",
"publicKeyBase58": "FSc1AR14tJyxkcpg9229AxnZpczXWKKtfBBPvKgXuM9L"
}
]
}
1 change: 1 addition & 0 deletions resources/did-configuration/.env
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
Expand Up @@ -9,7 +9,7 @@
/coverage

# production
# /build
/build

# misc
.DS_Store
Expand Down
68 changes: 68 additions & 0 deletions resources/did-configuration/README.md
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 comments on commit a9a5206

Please sign in to comment.