Registrar employee have access to a private page to validate the identity of people who submitted their identity through the form.
The page will show a table with all the users who registered with them by fetching data from the database with a status indicator to show the state of the process.
The different states are:
Not started (state-0): no actions have been started yet
Uploaded to IPFS(state-1): the registrar has signed and upload the identity to IPFS
Sent on chain (waiting for user)(state-2): the registrar added the identity to the on chain contract
Validated(state-3): The user has confirmed their identity on chain
The process can be started on the front end by clicking a button.
Here is the generic process:
format the identity according to the data specification below
Prompt the user to sign the data field
Compose the final data with the signature in the signature field and insert the signer address
Upload the file to IPFS and retrieve the hash of the file
Update the state of the validation to state-1
Send a tx to the contract to register the new identity.
update the state of the validation to state-2
The identity format will be in json. Here is an example:
{ "data": { "name": "InsureYouCar ltd.", "sector": "insurance", "address": "123 yellow street", "email": "contact@iyc.ca", "website": "iyc.ca", "phone_number": "+1 999 999 9999", "eth_address": "0x1234" }, "signer": "0x00000000000000dead", "signature": "0x12abD21094" }
Registrar employee have access to a private page to validate the identity of people who submitted their identity through the form.
The page will show a table with all the users who registered with them by fetching data from the database with a status indicator to show the state of the process.
The different states are:
The process can be started on the front end by clicking a button. Here is the generic process:
The identity format will be in json. Here is an example:
{ "data": { "name": "InsureYouCar ltd.", "sector": "insurance", "address": "123 yellow street", "email": "contact@iyc.ca", "website": "iyc.ca", "phone_number": "+1 999 999 9999", "eth_address": "0x1234" }, "signer": "0x00000000000000dead", "signature": "0x12abD21094" }