Git Product home page Git Product logo

jarrensj / aa-virtual-cold-storage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alchemyplatform/aa-virtual-cold-storage

0.0 0.0 0.0 6.23 MB

Supercharging smart contract account security with custom virtual cold storage plugin functionalities | Built with @alchemyplatform Modular Smart Contract Account (ERC 6900) & aa-sdk | Learn More: https://accountkit.alchemy.com/

Home Page: https://aa-virtual-cold-storage.vercel.app

Shell 0.39% JavaScript 0.48% TypeScript 48.16% Solidity 50.97%

aa-virtual-cold-storage's Introduction

cold-storage-plugin

Overview

  • You have some NFTs that are really, really valuable. You don’t want to lose these NFTs, even if the rest of your account is compromised, including your owner key.
  • Today, you might put your NFTs in a separate EOA and lock the private key in a bank vault.
    • But then you can’t use the NFTs to get into exclusive events!
  • The Cold Storage plugin will let you secure your NFTs just as hard, but as part of your main modular account!
Screenshot 2024-03-12 at 3 34 20 PM

Core Plugin Functions

  1. Installing the Cold Storage Plugin
    • The owner specifies a highly secure storage key when installing the plugin
  2. Locking an NFT
    • The owner can lock NFTs (all ERC721s, collections, or tokens) and place them in cold storage
  3. Transferring NFT as the Owner
    • Transferring a locked NFT is blocked
    • Transferring a NFT that isn’t locked is fine
  4. Transferring a Locked NFT with Storage Key
    • The storage key has permission to transfer locked NFTs

Addtional Plugin Functions

  1. The storage key also has permissions to unlock NFTs and change the storage key
  2. Uninstalling the Plugin
    • The plugin blocks uninstalls when there locked NFTs

Demo

Screenshot 2024-03-12 at 2 28 20 PM Screenshot 2024-03-12 at 2 28 43 PM Screenshot 2024-03-12 at 2 28 58 PM Screenshot 2024-03-12 at 2 29 16 PM Screenshot 2024-03-12 at 2 29 55 PM Screenshot 2024-03-12 at 2 30 13 PM Screenshot 2024-03-12 at 2 30 42 PM Screenshot 2024-03-12 at 2 30 58 PM

Development

Environment variables

After you run init, your .env file should look like this

NODE_ENV=development

# https://dashboard.alchemy.com/apps
ALCHEMY_API_KEY=<YOUR_ALCHEMY_API_KEY>

# you can also use Access Keys of your account
# https://dashboard.alchemy.com/settings/access-keys
ALCHEMY_ACCESS_KEY=<YOUR_ALCHEMY_ACCESS_KEY>

# https://dashboard.alchemy.com/gas-manager
NEXT_PUBLIC_ALCHEMY_GAS_MANAGER_POLICY_ID=<YOUR_ALCHEMY_GAS_MANAGER_POLICY_ID>

NEXT_TELEMETRY_DISABLED=1

aa-virtual-cold-storage's People

Contributors

alex-miao avatar denniswon avatar dphilipson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.