27 lines
1.0 KiB
JSON
27 lines
1.0 KiB
JSON
{
|
|
"_meta": {
|
|
"contract": "cry01-vc",
|
|
"version": "1.0",
|
|
"purpose": "W3C Verifiable Credential envelope for Civic Infrastructure diagnostic results."
|
|
},
|
|
"_note": "The actual VC is a JSON-LD document signed by the operator. The credentialSubject.claim field contains the claim specific to the issuing addon.",
|
|
"vc_structure": {
|
|
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
|
"type": ["VerifiableCredential"],
|
|
"issuer": "did:web:directory.diagnostics.kane-il.us",
|
|
"issuanceDate": "ISO 8601 timestamp",
|
|
"credentialSubject": {
|
|
"id": "did:web:directory.diagnostics.kane-il.us/channel/{xchan}",
|
|
"association": "association slug",
|
|
"claim_type": "signal | ballot | poll_result | sase_admission",
|
|
"claim": "addon-specific structured claim — see issuing addon spec"
|
|
},
|
|
"proof": {
|
|
"type": "Ed25519Signature2020",
|
|
"created": "ISO 8601 timestamp",
|
|
"verificationMethod": "did:web:directory.diagnostics.kane-il.us#operator-key",
|
|
"proofValue": "base58-encoded signature"
|
|
}
|
|
}
|
|
}
|