If Permitify is to be decoupled from TheOrgBook, there are a few changes that will need to be made. This is a rough list of expected changes to help you get started.
- On boot, Permitify publishes unpublished schemas and claim definitions found in the configuration files. This is good but it also registers itself with TheOrgBook which will need to be trimmed out. - https://github.com/bcgov/permitify/blob/master/src/von_connector/apps.py
This is a provisional implementation that will likely evolve over time. You may want to change this for your implementation.
- Make a claim offer to the holder.
POST <TheOrgBook>/bcovrin/generate-claim-request
{
"did": <issuer did>,
"seqNo": <schema sequence number>,
"claim_def": <claim definition json>
}
returns claim request json
- Send claim to holder.
POST <TheOrgBook>/bcovrin/store-claim
{
"claim_type": <relevant schema name>,
"claim_data": <claim json>
}
- Send proof request
POST /bcovrin/construct-proof
{
"filters": <object of filters>,
"proof_request": <proof request json>
}
- https://github.com/bcgov/permitify/blob/master/src/von_connector/apps.py
- https://github.com/bcgov/permitify/blob/master/src/von_connector/schema.py
- https://github.com/bcgov/permitify/blob/master/src/von_connector/proof.py
- https://github.com/bcgov/permitify/blob/master/src/permitify/views.py
- https://github.com/bcgov/permitify/tree/master/site_templates