mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Patched source for Aeneas/Charon formal verification transpilation
This fork's sha2-0.10 Sha512 type alias cannot be declared opaque by the extractor (generic-array expansion), so the three stateful hasher wrappers collapse into one monomorphic sha512_hash3(r, a, m) -> [u8; 64] whose signature carries no foreign types. Semantically Sha512 over r || a || m — exactly the H(R || A || M) the verification equation hashes. Extraction builds with --no-default-features (the no-std From<InternalError> branch uses Error::new, avoiding the boxed dyn-Error source path). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| curve25519-dalek | ||
| curve25519-dalek-derive | ||
| docs/assets | ||
| ed25519-dalek | ||
| x25519-dalek | ||
| .gitignore | ||
| Cargo.toml | ||
| CONTRIBUTING.md | ||
| README.md | ||
Dalek elliptic curve cryptography
This repo contains pure-Rust crates for elliptic curve cryptography:
| Crate | Description | Crates.io | Docs | CI |
|---|---|---|---|---|
curve25519‑dalek |
A library for arithmetic over the Curve25519 and Ristretto elliptic curves and their associated scalars. | |||
ed25519‑dalek |
An implementation of the EdDSA digital signature scheme over Curve25519. | |||
x25519‑dalek |
An implementation of elliptic curve Diffie-Hellman key exchange over Curve25519. |
There is also the curve25519-dalek-derive crate, which is just a helper crate with some macros that make curve25519-dalek easier to write.
Contributing
Please see CONTRIBUTING.md.
Code of Conduct
We follow the Rust Code of Conduct, with the following additional clauses:
- We respect the rights to privacy and anonymity for contributors and people in the community. If someone wishes to contribute under a pseudonym different to their primary identity, that wish is to be respected by all contributors.