8e830e78fe
* Se mueven todos las plantillas no vigentes a la carpeta "deprecated" * Se arreglan los context de las plantillas nuevas importadas, pues no funcionaban tal como venían * Se modifica el script main.py para adecuar los tests a las nuevas plantillas Queda VERIFICADO que: * Los @contexts actuales son el minimo imprescindible para funcionar, no se puede eliminar nada mas * El credential model v2 NO FUNCIONA con la libreria de didkit * Las plantillas tal como están en este commit verifican correctamente la función issue_vc_test()
32 lines
1 KiB
JSON
32 lines
1 KiB
JSON
{
|
|
"@context": [
|
|
"https://www.w3.org/2018/credentials/v1",
|
|
{
|
|
"name": "https://schema.org/name",
|
|
"email": "https://schema.org/email",
|
|
"membershipType": "https://schema.org/memberOf",
|
|
"individual": "https://schema.org/Person",
|
|
"organization": "https://schema.org/Organization",
|
|
"Member": "https://schema.org/Member",
|
|
"startDate": "https://schema.org/startDate",
|
|
"jsonSchema": "https://schema.org/jsonSchema",
|
|
"$ref": "https://schema.org/jsonSchemaRef"
|
|
}
|
|
],
|
|
"type": ["VerifiableCredential", "VerifiableAttestation"],
|
|
"id": "{{ vc_id }}",
|
|
"issuer": "{{ issuer_did }}",
|
|
"issuanceDate": "{{ issuance_date }}",
|
|
"credentialSubject": {
|
|
"id": "{{ subject_did }}",
|
|
"Member": {
|
|
"name": "{{ name }}",
|
|
"email": "{{ email }}",
|
|
"membershipType": "{{ membershipType }}",
|
|
"startDate": "{{ startDate }}"
|
|
},
|
|
"jsonSchema": {
|
|
"$ref": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/member-schema.json"
|
|
}
|
|
}
|
|
} |