This repository is a Zig implementation of the Ethereum stealth addresses (ERC-5564).
The implementation has zero dependencies (i.e: only relies on Zig standard library).
Note: this library hasn't been audited, use it at your own risk.
Stealth addresses are a way of protecting the privacy of recipients in cryptocurrency transactions. They allow a sender to non-interactively generate a new address for the recipient, making it look like as if the sender interacted with some random account.
- ERC-5564 and ERC-6538.
- Stealth Addresses tutorial by Toni Wahrstätter.
- An incomplete guide to stealth addresses by Vitalik.
- Web-based Stealth wallet by Toni Wahrstätter.
You can use this library as a dependency in your Zig project by adding it as a dependency to your build.zig.zon
file.
See the library tests for some examples of how to use the defined APIs.
In the future, this repo might include a CLI tool to generate and interact with stealth addresses.
MIT.