This repo contains the canonical implementations of the ERC-5564 and ERC-6538 contracts:
- ERC-5564 Stealth Addresses: Private, non-interactive transfers and interactions.
- ERC-6538 Stealth Meta-Address Registry: A registry to map addresses to stealth meta-addresses
This repo is developed using Foundry.
-
Install Foundry on your local machine by following the instructions here.
-
Clone the repo and navigate to the root directory of the repo:
git clone git@github.com:ScopeLift/stealth-address-erc-contracts.git
cd stealth-address-erc-contracts
# Build the contracts
forge build
# Run the tests
forge test
# See test coverage
forge coverage
This project uses scopelint for linting and spec generation. Follow these instructions to install it.
# Check formatting
scopelint check
# Apply formatting changes
scopelint fmt
scopelint spec
This command will use the names of the contract's unit tests to generate a human readable spec. It will list each contract, its constituent functions, and the human readable description of functionality each unit test aims to assert.
The stealth contracts are deployed at the following addresses:
ERC5564Announcer
: 0x55649E01B5Df198D18D95b5cc5051630cfD45564
ERC6538Registry
: 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538
If you've deployed the contracts on networks other than the ones currently listed, please submit a pull request to update the deployment table with the relevant block scanner links. Thank you!
Networks | ERC5564Announcer | ERC6538Registry |
---|---|---|
Sepolia | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 |
Holešky | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 |
Networks | ERC5564Announcer | ERC6538Registry |
---|---|---|
Arbitrum Sepolia | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 |
Base Sepolia | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 |
Optimism Sepolia | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 |
Coming soon.
Contracts in this repository are released under the MIT License.