Inspiration
People think about what will happen to their digital assets if they are dead. If they share their account credentials now, people might use their wallets instantly. Is there a way we can give people access to our assets when we are no longer active?
What it does
Allow another account (near account) to gain access to yours when you are dead or if you lose access to your account for any reason.
How we built it
A recovery smart contract is deployed to the user's account giving him the option to set a recovery date and a recovery account that will be authorized to recover this account after the recovery date is passed.
Challenges we ran into
There was no way to implement this in NEAR without requiring a full-access key which can be scary to the users. Also, there isn't a way to log in with a full-access key using near-api-js -understandably- but it was the only way to be able to deploy the recovery contract to the user account.
Accomplishments that we're proud of
Deploying a safe and secure smart contract on the users' accounts is a first. we had to think a lot about the design, how to make it as secure as possible, and how to make the user experience as smooth and easy as possible.
What we learned
We learned a lot about access keys, NEAR smart contracts, and how NEAR secures accounts, also how to use NEAR Wallet's hidden features (recovering an account through the private key and requesting a full-access key when logging in) to be able to implement Save Station and give the user the option to securely backup his assets (because we know how it feels to lose the recovery phrase).
What's next for Save Station.
We plan to release it on mainnet so that everyone on NEAR Protocol can use it to add one more layer of security and protection to their accounts.
Built With
- assembly-script
- near-as
- near-sdk
- react
Log in or sign up for Devpost to join the conversation.