interbtc icon indicating copy to clipboard operation
interbtc copied to clipboard

feat: Add recovery pallet in runtime.

Open nakul1010 opened this issue 1 year ago • 6 comments

Closes #736

The Recovery Pallet in Substrate is a social recovery tool that allows users to regain account access through trusted friends' approval. It offers customizable configurations, safeguards, and efficient computational performance.

Key Points

  • Utilizes M-of-N social recovery mechanism with Substrate for account access restoration.
  • Users set a threshold of trusted friends for approving recovery attempts.
  • Configurable parameters include friend selection, approval threshold, and delay period.
  • Requires a deposit for creating a recovery configuration, refundable upon removal, and works based on game theory approach.
  • Provides a secure process for initiating, vouching, and claiming account recovery.
  • Allows updates to recovery configurations based on changing relationships and circumstances.
  • Ensures account security by requiring consensus among trusted friends.
  • Mitigates the risk of key loss or authentication issues, enhancing account security.

For more detailed information, refer to the Substrate documentation on Pallet Recovery.

Note: To enhance the adoption of the pallet among Interlay users, the implementation of a dedicated web app page is essential.

nakul1010 avatar Jun 26 '23 04:06 nakul1010

Thanks for looking into this @nakul1010! I've left a few comments on the Interlay runtime but please also consider those for the Kintsugi runtime. It's good that you already ran the benchmarks. In the PR description can you describe a bit about the functionality of the recovery pallet? Specifically how it works and what the benefits are.

Done

nakul1010 avatar Jun 29 '23 10:06 nakul1010

@nud3l @sander2 thoughts on including this pallet?

gregdhill avatar Jun 30 '23 16:06 gregdhill

I'm in favor of including the pallet. @nakul1010 @gregdhill do you know other projects having a UI for this?

I do think the security deposits are too aggressive though for the feature to be useful. Left an extra comment there so we can discuss.

nud3l avatar Jul 04 '23 01:07 nud3l

I'm in favor of including the pallet. @nakul1010 @gregdhill do you know other projects having a UI for this?

I do think the security deposits are too aggressive though for the feature to be useful. Left an extra comment there so we can discuss.

I couldn't find any team that has a dedicated user interface specifically for this pallet. However, you can find the flow documentation for the process on Polkadot's document website here.

nakul1010 avatar Jul 04 '23 04:07 nakul1010

Ok, let me ask if somebody has already implemented a UI for this.

nud3l avatar Jul 04 '23 08:07 nud3l

@gregdhill updated parameters based on the comment.

nakul1010 avatar Jul 10 '23 18:07 nakul1010