Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

[IMP] Testing JSON data for credentials #6

Open
haardikk21 opened this issue Apr 30, 2020 · 1 comment
Open

[IMP] Testing JSON data for credentials #6

haardikk21 opened this issue Apr 30, 2020 · 1 comment
Assignees

Comments

@haardikk21
Copy link

haardikk21 commented Apr 30, 2020

Until the app gets hooked up with a backend, the following credentials can be used for testing purposes. The credential cards, credential details, etc. should dynamically show their information according to the information in the following JSON, and not hardcode any specific fields.

Credential 1: University Degree Sample

{
    "verifiableCredential": {
        "@context": [
            "https://www.w3.org/2018/credentials/v1",
            "https://www.w3.org/2018/credentials/examples/v1"
        ],
        "id": "http://example.gov/credentials/3732",
        "type": [
            "VerifiableCredential",
            "UniversityDegreeCredential"
        ],
        "issuanceDate": "2020-03-10T04:24:12.164Z",
        "credentialSubject": {
            "id": "did:flex:testnet:EiDh-f9NbB2PwARwC5zKL8dNCkbHojGWVkBZiAhPvthxXg",
            "degree": {
                "type": "BachelorDegree",
                "name": "Bachelor of Science and Arts"
            }
        },
        "issuer": "did:flex:testnet:EiBRRnOpwxjgtpi1sMZ3wVhyAAPqUNtFoE0pFP45sckBEA",
        "proof": {
            "type": "Ed25519Signature2018",
            "created": "2020-04-07T03:42:23Z",
            "jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..nWD6xbn2bTCFAXZyrFlv0omGQcHuoK0t0762TUtOVT1NO41uZOY5l9XSTmPt3J_RlEL0U8PT3MI-xGX2Xbg3Bw",
            "proofPurpose": "assertionMethod",
            "verificationMethod": "did:flex:testnet:EiBRRnOpwxjgtpi1sMZ3wVhyAAPqUNtFoE0pFP45sckBEA#primary"
        }
    }
}

Credential 2: National ID Credential

{
    "verifiableCredential": {
        "@context": [
            "https://www.w3.org/2018/credentials/v1",
            "https://www.w3.org/2018/credentials/examples/v1"
        ],
        "id": "http://example.gov/credentials/3732",
        "type": [
            "VerifiableCredential",
            "NationalIDCredential"
        ],
        "issuanceDate": "2020-03-10T04:24:12.164Z",
        "credentialSubject": {
            "id": "did:flex:testnet:EiDh-f9NbB2PwARwC5zKL8dNCkbHojGWVkBZiAhPvthxXg",
            "nationalId": {
                "id": "123435689",
                "name": "John Doe",
                "address": "123 St, ABC Avenue, Canada",
                "birthDate": "Thu, 30 Apr 2020 17:39:20 GMT"
            }
        },
        "issuer": "did:flex:testnet:EiBRRnOpwxjgtpi1sMZ3wVhyAAPqUNtFoE0pFP45sckBEA",
        "proof": {
            "type": "Ed25519Signature2018",
            "created": "2020-04-07T03:42:23Z",
            "jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..nWD6xbn2bTCFAXZyrFlv0omGQcHuoK0t0762TUtOVT1NO41uZOY5l9XSTmPt3J_RlEL0U8PT3MI-xGX2Xbg3Bw",
            "proofPurpose": "assertionMethod",
            "verificationMethod": "did:flex:testnet:EiBRRnOpwxjgtpi1sMZ3wVhyAAPqUNtFoE0pFP45sckBEA#primary"
        }
    }
}

The relevant parts of these credentials is the credentialSubject property

===============================

HistoryItem

[
        {
        "credentialType": "NationalIDCredential",
        "requestType": "incoming",
        "organization": "Central Bank of Zimbabwe",
    },
    {
        "credentialType": "NationalIDCredential",
        "requestType": "outgoing",
        "organization": "Ministry of Land and Agriculture",
    }
]
@haardikk21
Copy link
Author

i unfortunately cant assign more than 1 member to an issue due to free Github, so tagging y'all here
@madhur4444
@rishi-koul

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants