Code Monkey home page Code Monkey logo

stealthchad's Introduction

Stealth Chad

An implementation of ERC-5564: Stealth Addresses and ERC-6538: Stealth Meta-Address Registry (using bytes32 instead of bytes).

Test it at https://bokkypoobah.github.io/StealthChad/ (WIP) connected to the Ethereum Sepolia testnet.


How The ERC-5564: Stealth Addresses Protocol Works

  • Alice wants to pay Bob in ETH/ERC-20/ERC-721 tokens
  • Bob generates a Stealth Meta-Address and provides this to Alice
  • Alice uses Bob's Stealth Meta-Address to compute a random Stealth Address that can be accessed only by Bob
  • Alice transfers the tokens to this address and announces the transfers in the ERC-5564: Stealth Address Announcer contract
  • Bob can access the private keys to their computed Stealth Addresses, using information included in the announcements
  • The ERC-6538: Stealth Meta-Address Registry allows any account to publish their associated Stealth Meta-Addresses

How This Dapp Works

This dapp:

  • Allows Bob's web3 attached account to generate a unique Stealth Meta-Address for each unique associated phrase
  • Allows Alice to compute a random Stealth Address using Bob's Stealth Meta-Address
  • Allows Alice to then execute the transfer to Bob's Stealth Address and announce the transfer to the Announcer
  • Retrieve all event logs published to the Announcer
  • Retrieves all event logs published to the Registry


Sample Screens

Addresses Sample Screens

Addresses - After Sync

Addresses - Generate New Stealth Meta-Address

Click [+] in the Addresses screen to generate a new Stealth Meta-Address.

Addresses - Generate New Stealth Meta-Address - Sign With Web3 Wallet

Addresses - Generate New Stealth Meta-Address - After Signing

Click [Update] to update the Stealth Meta-Address keys.

Addresses - After New Generated Stealth Meta-Address Updated

Addresses - View Newly Generated Stealth Meta-Address

Addresses - View Newly Generated Stealth Meta-Address - Spending Private Key - Sign

Click on the [eye] button to sign with your web3 wallet to view the Spending Private Key.

Addresses - View Newly Generated Stealth Meta-Address - Spending Private Key



Activity Sample Screens

Activity - After Sync With Generated Keys

Note: Duplicated stealth payments to the same receivers for testing

Activity - Sample Stealth Payment

Item 4.

Activity - Sample Stealth Payment - Sign To View Receiver's Stealth Address Private Key

Item 4.

Activity - Sample Stealth Payment - Receiver's Stealth Address Private Key

Activity - Receiver's Stealth Address Private Key In Web3 Wallet



References



Deployments



Enjoy!

(c) BokkyPooBah / Bok Consulting Pty Ltd 2024. The MIT Licence.

stealthchad's People

Contributors

bokkypoobah 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.