Skip to content

Commit

Permalink
Add proof-configurations for csb-transcriber
Browse files Browse the repository at this point in the history
Signed-off-by: Emiliano Suñé <[email protected]>
  • Loading branch information
esune committed Sep 23, 2024
1 parent f827d41 commit cb7cdd7
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 0 deletions.
103 changes: 103 additions & 0 deletions proof-configurations/csb-transcriber/dev/csb-transcriber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"subject_identifier": "user_id",
"proof_request": {
"name": "CSB Transcriber (Dev)",
"version": "1.0",
"requested_attributes": [
{
"names": [
"user_id",
"company_name"
],
"restrictions": [
{
"cred_def_id": "RSDAVyaiUjFPCj245PoY3P:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "9defyjkM6MX5zh2D5Mwo1U"
},
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
]
}
],
"requested_predicates": [
{
"name": "contract_start_dateint",
"restrictions": [
{
"cred_def_id": "RSDAVyaiUjFPCj245PoY3P:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "9defyjkM6MX5zh2D5Mwo1U"
},
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": "<="
},
{
"name": "contract_end_dateint",
"restrictions": [
{
"cred_def_id": "RSDAVyaiUjFPCj245PoY3P:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "9defyjkM6MX5zh2D5Mwo1U"
},
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
},
{
"name": "criminal_record_expiry_dateint",
"restrictions": [
{
"cred_def_id": "RSDAVyaiUjFPCj245PoY3P:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "9defyjkM6MX5zh2D5Mwo1U"
},
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
}
]
},
"generate_consistent_identifier": false,
"include_v1_attributes": true,
"ver_config_id": "csb-transcriber"
}
63 changes: 63 additions & 0 deletions proof-configurations/csb-transcriber/prod/csb-transcriber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"subject_identifier": "user_id",
"proof_request": {
"name": "CSB Transcriber",
"version": "1.0",
"requested_attributes": [
{
"names": [
"user_id",
"company_name"
],
"restrictions": [
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
]
}
],
"requested_predicates": [
{
"name": "contract_start_dateint",
"restrictions": [
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": "<="
},
{
"name": "contract_end_dateint",
"restrictions": [
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
},
{
"name": "criminal_record_expiry_dateint",
"restrictions": [
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
}
]
},
"generate_consistent_identifier": false,
"include_v1_attributes": true,
"ver_config_id": "csb-transcriber"
}
83 changes: 83 additions & 0 deletions proof-configurations/csb-transcriber/test/csb-transcriber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"subject_identifier": "user_id",
"proof_request": {
"name": "CSB Transcriber (Test)",
"version": "1.0",
"requested_attributes": [
{
"names": [
"user_id",
"company_name"
],
"restrictions": [
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
]
}
],
"requested_predicates": [
{
"name": "contract_start_dateint",
"restrictions": [
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": "<="
},
{
"name": "contract_end_dateint",
"restrictions": [
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
},
{
"name": "criminal_record_expiry_dateint",
"restrictions": [
{
"cred_def_id": "QX5kJqzx6c98Qvi7DDNAb6:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "BQu1v6o9Z9ttkdwbVqpyZB"
},
{
"cred_def_id": "EmX9iHJrL7R6MBLH38QYp:3:CL:34742:transcriber",
"schema_name": "contractor-credential",
"schema_issuer_did": "B8B9jho4L57A1f6MmXpAbu"
}
],
"p_value": "$today_int",
"p_type": ">"
}
]
},
"generate_consistent_identifier": false,
"include_v1_attributes": true,
"ver_config_id": "csb-transcriber"
}

0 comments on commit cb7cdd7

Please sign in to comment.