Skip to content

Commit

Permalink
chore: change package name to halo2curves-axiom for crates.io publi…
Browse files Browse the repository at this point in the history
…sh (#11)
  • Loading branch information
jonathanpwang authored Nov 15, 2023
2 parents f11edd0 + 71cc7ce commit 1aa2f43
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 21 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
package: [halo2curves]
package: [halo2curves-axiom]
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
profile: minimal

- name: Get current version
id: get-version
Expand All @@ -42,18 +42,18 @@ jobs:
exit 1
fi
done
echo "Input version is equal to current version. Failing..."
exit 1
- name: Install cargo-release
uses: taiki-e/install-action@v2
with:
tool: cargo-release

- uses: cargo-bins/release-pr@v2
with:
pr-template-file: .github/release-pr-template.ejs
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
crate-release-all: true
pr-template-file: .github/release-pr-template.ejs
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
crate-release-all: true
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "halo2curves"
name = "halo2curves-axiom"
version = "0.4.1"
authors = ["Privacy Scaling Explorations team"]
authors = ["Privacy Scaling Explorations team", "Taiko Labs", "Intrinsic Technologies"]
license = "MIT/Apache-2.0"
edition = "2021"
repository = "https://github.com/privacy-scaling-explorations/halo2curves"
repository = "https://github.com/axiom-crypto/halo2curves"
readme = "README.md"
description = "Elliptic curve implementations and wrappers for halo2 library"
rust-version = "1.63.0"
description = "Elliptic curve implementations and wrappers for halo2 library. This is a fork of the \"halo2curves\" crate for Axiom's production usage."
rust-version = "1.67.0"

[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
Expand Down
2 changes: 1 addition & 1 deletion benches/bn256_field.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion, Throughput};
use halo2curves::{bn256::*, ff::Field, legendre::Legendre};
use halo2curves_axiom::{bn256::*, ff::Field, legendre::Legendre};
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;

Expand Down
4 changes: 2 additions & 2 deletions benches/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ extern crate criterion;

use criterion::{BenchmarkId, Criterion};
use group::ff::Field;
use halo2curves::bn256::Fr as Scalar;
use halo2curves::fft::best_fft;
use halo2curves_axiom::bn256::Fr as Scalar;
use halo2curves_axiom::fft::best_fft;
use rand_core::OsRng;
use std::ops::Range;
use std::time::SystemTime;
Expand Down
2 changes: 1 addition & 1 deletion benches/group.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use ff::Field;
use group::prime::PrimeCurveAffine;
use halo2curves::secp256k1::Secp256k1;
use halo2curves_axiom::secp256k1::Secp256k1;
use pasta_curves::arithmetic::CurveExt;
use rand_core::OsRng;

Expand Down
4 changes: 3 additions & 1 deletion benches/hash_to_curve.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::iter;

use criterion::{black_box, criterion_group, criterion_main, Criterion};
use halo2curves_axiom as halo2curves;
use pasta_curves::arithmetic::CurveExt;
use rand_core::{OsRng, RngCore};
use std::iter;

fn hash_to_secp256k1(c: &mut Criterion) {
hash_to_curve::<halo2curves::secp256k1::Secp256k1>(c, "Secp256k1");
Expand Down
2 changes: 1 addition & 1 deletion benches/less_than.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn check_underflow(x: &[u64; 4], y: &[u64; 4]) -> bool {

use criterion::{criterion_group, criterion_main, Criterion};
use group::Group;
use halo2curves::bn256::G1;
use halo2curves_axiom::bn256::G1;
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;

Expand Down
4 changes: 2 additions & 2 deletions benches/msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ extern crate criterion;
use criterion::{BenchmarkId, Criterion};
use ff::Field;
use group::prime::PrimeCurveAffine;
use halo2curves::bn256::{Fr as Scalar, G1Affine as Point};
use halo2curves::msm::{best_multiexp, multiexp_serial};
use halo2curves_axiom::bn256::{Fr as Scalar, G1Affine as Point};
use halo2curves_axiom::msm::{best_multiexp, multiexp_serial};
use maybe_rayon::current_thread_index;
use maybe_rayon::prelude::{IntoParallelIterator, ParallelIterator};
use rand_core::SeedableRng;
Expand Down

0 comments on commit 1aa2f43

Please sign in to comment.