Skip to content
@Starknet-Recovery-Service

Switch

The first fully trustless and on-chain account recovery mechanism for Ethereum, powered by Starknet storage proofs. Prev: StarkNet Recovey Service

Switch (ex. Starknet Recovery Service)

⚠️ Switch is still in development and not ready to be used with live assets. Please proceed with caution.

Switch is a fully trustless wallet recovery service for Ethereum Externally Owned Accounts (EOA - your normal Ethereum address, not smart contract wallet), powered by storage proofs on StarkNet.

Unlike social recovery and other off-chain methods for wallet retrieval, Switch runs in an entirely trustless, non-custodial way. This allows users to build more fault tolerant wallet setups, while retaining the strong security guarantees of Ethereum.

Video presentation + demo: Link

Slides: Link

image

image

How does it work?

To recover user funds, Switch uses storage proofs (by Oiler Network) to recursively derive the past state of an EOA and determine whether an account has been lost. This works (broadly) as follows:

  1. The owner of an EOA delegates control of their funds to a RecoveryContract on L1.
  2. Access details for EOA are lost.
  3. After a set period of inactivity (say 1 year), the user can call a StorageProver contract on StarkNet to verify that the nonce of the lost EOA has not changed over the period. If the test passes, the EOA is treated as lost and the L1 RecoveryContract is notified.
  4. To recover their assets, the user pings the L1 RecoveryContract to withdraw all delegated assets.

Switch is currently deployed for Ethereum L1 but can be ported to any other L1 blockchain which uses Patricia Merkle Trees.

Instructions

Users can get started with Switch by interacting with the frontend application deployed at https://starknet-recovery-service.vercel.app/.

The project files for Switch currently include three repos:

  • recovery, which contains the core smart contract logic for consuming storage proofs and handling L1 <> L2 messaging.
  • recovery-front-end, a frontend application for interacting with the deployed smart contracts (using either Argent or Braavos)
  • recovery-web-hooks, a server for interacting with and consuming data from the Fossil API.

Additional Note

Given that this methodology works for any blockchains that uses Patricia merkle trees (such as Solana, Avalanche, Fantom etc.), developers can build on top of our existing smart contracts or extend them to other Layer 1 blockchains via a cross-chain messaging protocol such as LayerZero.

Special thanks

Marcello Bardus for building Fossil and helping to integrate Switch with it.

Popular repositories Loading

  1. recovery recovery Public

    Core contracts for StarkNet Recovery Service, the first fully trustless and on-chain account recovery mechanism for Ethereum powered by Starknet storage proofs.

    Solidity 9 2

  2. recovery-front-end recovery-front-end Public

    Frontend application for StarkNet Recovery Service, the first fully trustless and on-chain account recovery mechanism for Ethereum, powered by Starknet storage proofs.

    JavaScript 1 2

  3. recovery-web-hooks recovery-web-hooks Public

    Server to consume API calls for StarkNet Recovery Service.

    JavaScript 1

  4. .github .github Public

Repositories

Showing 4 of 4 repositories
  • .github Public
    Starknet-Recovery-Service/.github’s past year of commit activity
    0 0 0 0 Updated Sep 6, 2022
  • recovery-web-hooks Public

    Server to consume API calls for StarkNet Recovery Service.

    Starknet-Recovery-Service/recovery-web-hooks’s past year of commit activity
    JavaScript 0 1 0 0 Updated Aug 15, 2022
  • recovery-front-end Public

    Frontend application for StarkNet Recovery Service, the first fully trustless and on-chain account recovery mechanism for Ethereum, powered by Starknet storage proofs.

    Starknet-Recovery-Service/recovery-front-end’s past year of commit activity
    JavaScript 1 2 3 0 Updated Aug 15, 2022
  • recovery Public

    Core contracts for StarkNet Recovery Service, the first fully trustless and on-chain account recovery mechanism for Ethereum powered by Starknet storage proofs.

    Starknet-Recovery-Service/recovery’s past year of commit activity
    Solidity 9 2 5 0 Updated Aug 15, 2022

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…