Skip to content

Commit

Permalink
Merge branch 'lambdaclass:main' into feat/pairing_subgroup_check
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles authored Oct 2, 2023
2 parents e8144d4 + 314fafc commit 04c48cc
Show file tree
Hide file tree
Showing 21 changed files with 379 additions and 433 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
cache: "pip"

- name: Install cairo-lang toolchain and dependencies
run: pip install -r requirements.txt
run: pip install -r provers/cairo/requirements.txt

- name: Install testing tools
uses: taiki-e/install-action@v2
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ exclude = ["ensure-no_std"]
resolver = "2"

[workspace.package]
version = "0.1.4"
version = "0.2.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lambdaclass/lambdaworks"

[workspace.dependencies]
iai-callgrind = "0.3.1"
lambdaworks-crypto = { path = "./crypto" }
lambdaworks-gpu = { path = "./gpu" }
lambdaworks-math = { path = "./math" }
stark-platinum-prover = { path = "./provers/stark" }
lambdaworks-crypto = { path = "./crypto", version = "0.2.0" }
lambdaworks-gpu = { path = "./gpu", version = "0.2.0" }
lambdaworks-math = { path = "./math", version = "0.2.0" }
stark-platinum-prover = { path = "./provers/stark", version = "0.2.0" }

[profile.bench]
lto = true
Expand Down
6 changes: 4 additions & 2 deletions crypto/benches/criterion_merkle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use core::time::Duration;
use criterion::{criterion_group, criterion_main, Criterion};
use lambdaworks_crypto::merkle_tree::{backends::hash_256_bits::Tree256Bits, merkle::MerkleTree};
use lambdaworks_crypto::merkle_tree::{
backends::field_element::FieldElementBackend, merkle::MerkleTree,
};
use lambdaworks_math::{
field::element::FieldElement,
field::fields::fft_friendly::stark_252_prime_field::Stark252PrimeField,
Expand All @@ -9,7 +11,7 @@ use sha3::Keccak256;
type F = Stark252PrimeField;
type FE = FieldElement<F>;

type TreeBackend = Tree256Bits<F, Keccak256>;
type TreeBackend = FieldElementBackend<F, Keccak256, 32>;

fn merkle_tree_benchmarks(c: &mut Criterion) {
let mut group = c.benchmark_group("Merkle Tree");
Expand Down
4 changes: 2 additions & 2 deletions crypto/benches/iai_merkle.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::hint::black_box;
use lambdaworks_crypto::{
hash::sha3::Sha3Hasher,
merkle_tree::{backends::hash_256_bits::Tree256Bits, merkle::MerkleTree},
merkle_tree::{backends::field_element::FieldElementBackend, merkle::MerkleTree},
};
use lambdaworks_math::{
field::element::FieldElement,
Expand All @@ -12,7 +12,7 @@ use sha3::Keccak256;
type F = Stark252PrimeField;
type FE = FieldElement<Stark252PrimeField>;

type TreeBackend = Tree256Bits<F, Keccak256>;
type TreeBackend = FieldElementBackend<F, Keccak256, 32>;

#[inline(never)]
#[export_name = "util::build_unhashed_leaves"]
Expand Down
102 changes: 0 additions & 102 deletions crypto/src/merkle_tree/backends/batch_256_bits.rs

This file was deleted.

121 changes: 0 additions & 121 deletions crypto/src/merkle_tree/backends/batch_512_bits.rs

This file was deleted.

Loading

0 comments on commit 04c48cc

Please sign in to comment.