Skip to content

Commit

Permalink
Merge pull request #190 from KogarashiNetwork/feature/improve-test
Browse files Browse the repository at this point in the history
improve test
  • Loading branch information
ashWhiteHat committed Jan 30, 2024
2 parents 0d37f19 + a6ca4d5 commit 32aec18
Show file tree
Hide file tree
Showing 13 changed files with 2,816 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --workspace --all-features
args: --release --workspace --all-features
108 changes: 8 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ members = [
"grumpkin",
"nova",
"zkstd",
"pallet/nova",
"pallet/nova"
]
exclude = [
"sample"
]

Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ RUN apk add --no-cache --update-cache \

WORKDIR /app

COPY . .
COPY ./sample .

WORKDIR /app/sample

CMD cargo test --release
# CMD cargo test --release
2 changes: 1 addition & 1 deletion nova/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use zkstd::common::{BNAffine, IntGroup, PrimeField, Ring};

/// Amount of rounds calculated for the 254 bit field.
/// Doubled due to the usage of Feistel mode with zero key.
pub(crate) const MIMC_ROUNDS: usize = 322;
pub(crate) const MIMC_ROUNDS: usize = 161;
/// Because we start with u equals 0 or 1, we have (1 << 125) steps.
/// Until the value of u will reach the MODULUS of the field.
pub(crate) const CHALLENGE_BITS: usize = 128;
Expand Down
Loading

0 comments on commit 32aec18

Please sign in to comment.