SIP-2 Discussion: Credential Issuance Flow

,

Discussion for the SIP here.

SIP-2 has moved to accepted and is under development.

Sip 2 is completed and pushed to mainline -

Create Manifest Input:

{
    "manifest":
        {
        "id": "WA-DL-CLASS-A",
        "spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/",
        "issuer": {
            "id": "did:example:123?linked-domains=3"
        },
        "output_descriptors": [
            {
            "id": "driver_license_output",
            "schema": "https://schema.org/EducationalOccupationalCredential"
            }
        ],
        "presentation_definition": {
            "id": "test",
            "input_descriptors": [
                {
                "id": "id1",
                "constraints" : 
                    {
                        "fields" : [ 
                            {
                            "path" : [
                                "path1"
                            ]
                            }
                        ]
                    }
                }
            ]
        }
    }
}

Create Manifest Output:

{
    "manifest": {
        "id": "WA-DL-CLASS-A",
        "spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/",
        "issuer": {
            "id": "did:example:123?linked-domains=3"
        },
        "output_descriptors": [
            {
                "id": "driver_license_output",
                "schema": "https://schema.org/EducationalOccupationalCredential"
            }
        ],
        "presentation_definition": {
            "id": "test",
            "input_descriptors": [
                {
                    "id": "id1",
                    "constraints": {
                        "fields": [
                            {
                                "path": [
                                    "path1"
                                ]
                            }
                        ]
                    }
                }
            ]
        }
    }
}

Submit Application Input:

{
    "requesterDid" : "did:user:123",
    "application": {
        "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
        "spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/",
        "manifest_id": "WA-DL-CLASS-A",
        "format": {
            "ldp_vc": {
                "proof_type": [
                    "JsonWebSignature2020",
                    "EcdsaSecp256k1Signature2019"
                ]
            }
        },
        "presentation_submission": {
            "id": "a30e3b91-fb77-4d22-95fa-871689c322e2",
            "definition_id": "32f54163-7166-48f1-93d8-ff217bdb0653",
            "descriptor_map": [
                {
                    "id": "id1",
                    "format": "jwt_vc",
                    "path": "$.verifiableCredential[0]"
                }
            ]
        }
    }
}

Submit Application Output:

{
    "response": {
        "id": "b7dc34e4-b8b3-4331-8fb7-b5d5bfb17799",
        "spec_version": "https://identity.foundation/credential-manifest/spec/v1.0.0/",
        "manifest_id": "WA-DL-CLASS-A",
        "application_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
        "fulfillment": {
            "descriptor_map": [
                {
                    "id": "id1",
                    "format": "jwt_vc",
                    "path": "$.verifiableCredential[0]"
                }
            ]
        }
    },
    "credentials": [
        {
            "@context": [
                "https://www.w3.org/2018/credentials/v1"
            ],
            "id": "43738ead-6172-4fc2-849b-7e04d502c41e",
            "type": [
                "VerifiableCredential"
            ],
            "issuer": "did:example:123?linked-domains=3",
            "issuanceDate": "2022-09-16T23:45:52Z",
            "credentialSubject": {
                "id": "did:user:123"
            }
        }
    ]
}
1 Like