Giter Site home page Giter Site logo

blocklock's Introduction

BlockLock

BlockLock was created during the Ethdam 2024 Hackathon.

Our purpose

BlockLock attempts to bridge the gap between traditional web2 user experience and the advantages of using a confidential and decentralised environment.

What is BlockLock

BlockLock is a web extension that works similarly to web2 password manager plugins like 1Pass, however the difference is that data is stored on chain. Oasis was a great fit for the project with Sapphire's encrypted storage of data & private execution environment to maintain confidentiality.

Layout

This mono-repo is made up of two main components:

  1. ./extension - Browser extension
  2. ./sapphire - Sapphire smart contract

Running instructions

Contract

  1. Create a .env file with your private key
cd sapphire
touch .env

Set the following keys:
PRIVATE_KEY=...
  1. Compile the contract
cd sapphire
pnpm install
pnpm hardhat compile
  1. Test the contract
npx hardhat test tests/SecretStore.test.ts
  1. Deploy on testnet or mainnet:
testnet:
npx hardhat run scripts/deploy.ts --network sapphire-testnet

mainnet:
npx hardhat run scripts/deploy.ts --network sapphire

Extension

  1. Create a .env file with your private key
cd extension
touch .env

Set the following keys:
VITE_METAMASK_EXT_ID=nkbihfbeogaeaoehlefnkodbefgpgknn
VITE_STORAGE_CONTRACT_ADDRESS=0x744c272c12D6c2417a0a99C69CaAD3719bc14E1C
  1. Build the extension
pnpm install
pnpm dev
  1. This will create a dist/ folder that can be loaded into any Chrome-based browser following steps here

More resources

Oasis Documentation - https://docs.oasis.io/

We have deployed & verified a version of this contract on Sapphire testnet which you can use: https://explorer.oasis.io/search?q=0x744c272c12D6c2417a0a99C69CaAD3719bc14E1C

Our Socials

Humpty Dumpty Devs - @hddevs | Charlie - @mackcee | Jack - @goodestacre | Jordan - @0xjordang | Vikrant - @vikr13nt

blocklock's People

Contributors

jonghakseo avatar allcontributors[bot] avatar goodacres avatar dependabot[bot] avatar jordangallant avatar charlie-mack avatar patrykkuniczak avatar junywuuuu91 avatar wonkydd avatar code-factor avatar bowencool avatar fell-lucas avatar rhea-so avatar kangju2000 avatar govza avatar ofir-zeitoun avatar barantaran avatar weekeight avatar xuoutput avatar webliang avatar debugtheworldbot avatar whalesink avatar zxhmike avatar tp-o avatar romaindequidt avatar raynirola avatar pmorch avatar omribarzik avatar jguddas avatar gai-h 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.