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.
- 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
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
Click [+] in the Addresses screen to generate a new Stealth Meta-Address.
Click [Update] to update the Stealth Meta-Address keys.
Click on the [eye] button to sign with your web3 wallet to view the Spending Private Key.
Note: Duplicated stealth payments to the same receivers for testing
Item 4.
Item 4.
- ERC-5564: Stealth Addresses
- ERC-6538: Stealth Meta-Address Registry
- https://github.com/nerolation/stealth-wallet
- https://github.com/kassandraoftroy/erc5564-contracts
- An incomplete guide to stealth addresses
- ERC-5564 Stealth Addresses
- EIP-5564: Improving Privacy on Ethereum through Stealth Address Wallets
- Ethereum stealth addresses (ERC-5564) library
- https://github.com/paulmillr/noble-curves
- ERC5564Announcer.sol on Sepolia 0x4f58404f363f8a3282648e80440e075e5c1e28a1
- ERC5564Registry.sol v0.8.0 on Sepolia 0xC5F111011acAd96860a3cd3d7C50Dd8f56a5684e
- StealthChad.sol v0.8.0 on Sepolia 0x3834bcA9093e375893D65975ad765179A149D017
Enjoy!
(c) BokkyPooBah / Bok Consulting Pty Ltd 2024. The MIT Licence.