DZhangLab / HIDe-dApp

Health Identity DEcentralized
0 stars 0 forks source link

Implement streams to communicate the loss of key pair to trigger DID recovery mechanism #42

Open ebenissan opened 1 year ago

ebenissan commented 1 year ago

When a patient user loses their device, how does the recovery process look?

murrlincoln commented 1 year ago

Recovery solution: The proxy contract address associated with a user will always be the same, even if they lose their wallet and need to do a social recovery. At the initialization of the DID document, we make their ID match that of the proxy address. If the user loses access to their account, they will create another account and go through the social recovery process, and that new account will be associated with their previous proxy address, meaning their DID will be the same and still associated with them.

We store the IPFS hash (content identifier - CID) as a variable in the proxy contract.