Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedarmist/sapphire-erc7212
ERC-7212 for Oasis Sapphire
https://github.com/cedarmist/sapphire-erc7212
Last synced: 20 days ago
JSON representation
ERC-7212 for Oasis Sapphire
- Host: GitHub
- URL: https://github.com/cedarmist/sapphire-erc7212
- Owner: CedarMist
- License: mit
- Created: 2024-05-11T00:52:49.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T01:10:47.000Z (6 months ago)
- Last Synced: 2024-05-11T02:26:00.802Z (6 months ago)
- Language: TypeScript
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ERC-7212 for Oasis Sapphire
Oasis Sapphire provides built-in support for secp256r1 via a precompile, however
the precompile isn't directly compatible with the 7212 precompile as internally
it uses DER encoded signatures and points.The `P256Verifier` contract implemented in this repository provides a small
compatibility layer, translating 7212 calls to use the Sapphire secp256r1
precompile.It is tested against the [Wycheproof] vectors.
[Wycheproof]: https://github.com/google/wycheproof
## References
* https://github.com/daimo-eth/p256-verifier
* https://daimo.com/blog/p256verifier
* https://eips.ethereum.org/EIPS/eip-7212