Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwen01 committed Nov 12, 2024
1 parent 42f1be6 commit 638738d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ jobs:
runs-on,
runner=64cpu-linux-x64,
spot=false,
hdd=150,
hdd=80,
"run-id=${{ github.run_id }}",
]
env:
Expand Down
6 changes: 3 additions & 3 deletions crates/verifier/src/groth16/ark_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use ark_serialize::{CanonicalDeserialize, Compress, Validate};
use thiserror::Error;

const GNARK_MASK: u8 = 0b11 << 6;
const GNARK_COMPRESSED_POSITVE: u8 = 0b10 << 6;
const GNARK_COMPRESSED_POSITIVE: u8 = 0b10 << 6;
const GNARK_COMPRESSED_NEGATIVE: u8 = 0b11 << 6;
const GNARK_COMPRESSED_INFINITY: u8 = 0b01 << 6;

const ARK_MASK: u8 = 0b11 << 6;
const ARK_COMPRESSED_POSITVE: u8 = 0b00 << 6;
const ARK_COMPRESSED_POSITIVE: u8 = 0b00 << 6;
const ARK_COMPRESSED_NEGATIVE: u8 = 0b10 << 6;
const ARK_COMPRESSED_INFINITY: u8 = 0b01 << 6;

Expand Down Expand Up @@ -76,7 +76,7 @@ fn gnark_flag_to_ark_flag(msb: u8) -> Result<u8, ArkGroth16Error> {
let gnark_flag = msb & GNARK_MASK;

let ark_flag = match gnark_flag {
GNARK_COMPRESSED_POSITVE => ARK_COMPRESSED_POSITVE,
GNARK_COMPRESSED_POSITIVE => ARK_COMPRESSED_POSITIVE,
GNARK_COMPRESSED_NEGATIVE => ARK_COMPRESSED_NEGATIVE,
GNARK_COMPRESSED_INFINITY => ARK_COMPRESSED_INFINITY,
_ => {
Expand Down

0 comments on commit 638738d

Please sign in to comment.