Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctian1 committed Feb 12, 2024
1 parent 943c59e commit 67ac26c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/syscall/precompiles/k256/decompress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ pub mod tests {

use crate::utils::setup_logger;
use crate::utils::tests::SECP256K1_DECOMPRESS_ELF;
use crate::{SuccinctProver, SuccinctStdin, SuccinctVerifier};
use crate::{CurtaProver, CurtaStdin, CurtaVerifier};

#[test]
fn test_k256_decompress() {
Expand All @@ -390,13 +390,13 @@ pub mod tests {
let decompressed = encoded.as_bytes();
let compressed = public_key.to_sec1_bytes();

let inputs = SuccinctStdin::from(&compressed);
let mut proof = SuccinctProver::prove(SECP256K1_DECOMPRESS_ELF, inputs).unwrap();
let inputs = CurtaStdin::from(&compressed);
let mut proof = CurtaProver::prove(SECP256K1_DECOMPRESS_ELF, inputs).unwrap();
let mut result = [0; 65];
proof.stdout.read_slice(&mut result);
assert_eq!(result, decompressed);

SuccinctVerifier::verify(SECP256K1_DECOMPRESS_ELF, &proof).unwrap();
CurtaVerifier::verify(SECP256K1_DECOMPRESS_ELF, &proof).unwrap();
}
}
}

0 comments on commit 67ac26c

Please sign in to comment.