precompiles

precompiles for ped_curve25519 and secp256k1.
This commit is contained in:
jonesmarvin8 2025-07-09 19:49:09 -04:00
parent 403823ba03
commit 4dbb1a9840
3 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@ fn main() {
// TODO: do something with the input
let g1 = bls12_381::G1Affine::generator();
let g1_proj = bls12_381::G1Projective::from(g1);
let g1_proj = bls12_381::G1Projective::from(g1);
let g2 = g1_proj + g1;
let g3 = g1 + g2;
let g4 = g1 + g3;

View File

@ -7,4 +7,5 @@ edition = "2021"
[dependencies]
risc0-zkvm = { version = "^2.1.0", default-features = false, features = ['std'] }
curve25519-dalek = "4"
curve25519-dalek = "4.1.2"

View File

@ -6,5 +6,8 @@ edition = "2021"
[workspace]
[dependencies]
risc0-zkvm = { version = "^2.1.0", default-features = false, features = ['std'] }
k256 = "0.13.4"
risc0-zkvm = { version = "^2.1.0", default-features = false, features = ['std', 'unstable'] }
k256 = "0.13.3"
[patch.crates-io]
k256 = { git = "https://github.com/risc0/RustCrypto-elliptic-curves", tag = "k256/v0.13.3-risczero.1" }