Skip to content

Commit

Permalink
chore: Rename to argument (#53)
Browse files Browse the repository at this point in the history
* chore: Rename to argument

* chore: Clippy
  • Loading branch information
samuelburnham authored Sep 25, 2024
1 parent adc96d8 commit 2f90c6b
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 37 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
unused-dependencies:
uses: lurk-lab/ci-workflows/.github/workflows/unused-deps.yml@main
uses: argumentcomputer/ci-workflows/.github/workflows/unused-deps.yml@main

rust-version-check:
uses: lurk-lab/ci-workflows/.github/workflows/rust-version-check.yml@main
uses: argumentcomputer/ci-workflows/.github/workflows/rust-version-check.yml@main
16 changes: 7 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ concurrency:

jobs:
test:
runs-on: gh-32vcpu-128gbram-ubuntu-2204
runs-on: warp-ubuntu-2404-x64-32x
strategy:
fail-fast: false
env:
Expand Down Expand Up @@ -65,12 +65,10 @@ jobs:
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
# See '.cargo/config' for list of enabled/disabled clippy lints
# See '.cargo/config.toml' for list of enabled/disabled clippy lints
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
run: |
cargo fmt --all --check
- name: cargo clippy
run: cargo xclippy -D warnings

Expand Down Expand Up @@ -105,10 +103,10 @@ jobs:

# Check documentation links aren't broken
link-checker:
uses: lurk-lab/ci-workflows/.github/workflows/links-check.yml@main
uses: argumentcomputer/ci-workflows/.github/workflows/links-check.yml@main
with:
fail-fast: true

# Lint dependencies for licensing and auditing issues as per https://github.com/lurk-lab/bellpepper-gadgets/blob/main/deny.toml
# Lint dependencies for licensing and auditing issues as per https://github.com/argumentcomputer/bellpepper-gadgets/blob/main/deny.toml
licenses-audits:
uses: lurk-lab/ci-workflows/.github/workflows/licenses-audits.yml@main
uses: argumentcomputer/ci-workflows/.github/workflows/licenses-audits.yml@main
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ members = [

[workspace.package]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/lurk-lab/bellpepper-gadgets"
repository = "https://github.com/lurk-lab/bellpepper-gadgets"
homepage = "https://github.com/argumentcomputer/bellpepper-gadgets"
repository = "https://github.com/argumentcomputer/bellpepper-gadgets"

[workspace.dependencies]
bellpepper-core = { version="0.4.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-APACHE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Lurk Lab
Copyright 2024 Argument Computer Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Lurk Lab
Copyright (c) 2024 Argument Computer Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Bellpepper Gadgets

This is intended to be a gadget library for
[bellpepper](https://github.com/lurk-lab/bellpepper).
[bellpepper](https://github.com/argumentcomputer/bellpepper).

## License

Expand Down
4 changes: 2 additions & 2 deletions crates/bls12381/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bellpepper-bls12381"
version = "0.2.0"
edition = "2021"
authors = ["Lurk Lab Engineering <engineering@lurk-lab.com>"]
authors = ["Argument Engineering <engineering@argument.xyz>"]
license.workspace=true
description = "Bellpepper circuit implementation of BLS12-381 pairing and curve operations"
documentation = "https://docs.rs/bellpepper-bls12381"
Expand All @@ -19,7 +19,7 @@ num-bigint = { workspace = true, features = ["rand"] }
num-integer = { workspace = true }
num-traits = { workspace = true}
rand = { workspace = true}
bls12_381 = { git = "https://github.com/lurk-lab/bls12_381", features = ["experimental"] }
bls12_381 = { git = "https://github.com/argumentcomputer/bls12_381", features = ["experimental"] }

[dev-dependencies]
bellpepper = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/bls12381/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bellpepper-bls12381

Emulated pairing and elliptic curve library using [bellpepper](https://github.com/lurk-lab/bellpepper) inspired by the [emulated](https://github.com/Consensys/gnark/tree/master/std/algebra/emulated) package in [Gnark](https://github.com/Consensys/gnark)
Emulated pairing and elliptic curve library using [bellpepper](https://github.com/argumentcomputer/bellpepper) inspired by the [emulated](https://github.com/Consensys/gnark/tree/master/std/algebra/emulated) package in [Gnark](https://github.com/Consensys/gnark)

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/bls12381/src/curves/g1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ mod tests {
fn test_random_mul_by_seed_square() {
let mut rng = rand::thread_rng();
let a = G1Projective::random(&mut rng);
let x0 = bls12_381::Scalar::from(15132376222941642752);
let x0 = Scalar::from(15132376222941642752);
let c = a * (x0 * x0);
let a = G1Affine::from(a);
let c = G1Affine::from(c);
Expand Down
2 changes: 1 addition & 1 deletion crates/bls12381/src/curves/g2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ mod tests {
fn test_random_mul_by_seed() {
let mut rng = rand::thread_rng();
let a = G2Projective::random(&mut rng);
let x0 = bls12_381::Scalar::from(15132376222941642752);
let x0 = Scalar::from(15132376222941642752);
let c = a * x0;
let c = -c;
let a = G2Affine::from(a);
Expand Down
4 changes: 2 additions & 2 deletions crates/chunk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "bellpepper-chunk"
version = "0.1.0"
rust-version = "1.66.1"
edition = "2021"
authors = ["Lurk Lab Engineering <engineering@lurk-lab.com>"]
authors = ["Argument Engineering <engineering@argument.xyz>"]
license.workspace=true
description = "Chunking pattern for circuits with accumulators and loops."
homepage.workspace = true
Expand All @@ -20,7 +20,7 @@ thiserror = "1.0.57"
getset = "0.1.2"

[dev-dependencies]
arecibo = { git = "https://github.com/lurk-lab/arecibo", branch = "dev", package = "arecibo" }
arecibo = { git = "https://github.com/argumentcomputer/arecibo", branch = "dev", package = "arecibo" }
bincode = "1.3.3"
flate2 = "1.0.28"
halo2curves = { version = "0.6.0", features = ["bits", "derive_serde"] }
Expand Down
6 changes: 3 additions & 3 deletions crates/chunk/tests/gadget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl<F: PrimeField> ChunkStepCircuit<F> for ChunkStep<F> {

// NIVC `StepCircuit`` implementation
#[derive(Clone, Debug)]
struct FoldStepWrapper<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
pub struct FoldStepWrapper<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
inner: FoldStep<F, C, N>,
}

Expand Down Expand Up @@ -77,12 +77,12 @@ impl<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> StepCircuit<F>
}

// NIVC `NonUniformCircuit` implementation
struct ChunkCircuit<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
pub struct ChunkCircuit<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
inner: InnerCircuit<F, C, N>,
}

#[derive(Clone, Debug)]
enum ChunkCircuitSet<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
pub enum ChunkCircuitSet<F: PrimeField, C: ChunkStepCircuit<F>, const N: usize> {
IterStep(FoldStepWrapper<F, C, N>),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/emulated/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bellpepper-emulated

Nonnative arithmetic library using [bellpepper](https://github.com/lurk-lab/bellpepper) inspired by the [emulated](https://github.com/Consensys/gnark/tree/master/std/math/emulated) package in [Gnark](https://github.com/Consensys/gnark)
Nonnative arithmetic library using [bellpepper](https://github.com/argumentcomputer/bellpepper) inspired by the [emulated](https://github.com/Consensys/gnark/tree/master/std/math/emulated) package in [Gnark](https://github.com/Consensys/gnark)

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/keccak/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bellpepper-keccak"
version = "0.1.0"
edition = "2021"
authors = ["Lurk Lab Engineering <engineering@lurk-lab.com>", "Zatoichi Labs <[email protected]>"]
authors = ["Argument Engineering <engineering@argument.xyz>", "Zatoichi Labs <[email protected]>"]
license.workspace=true
description = "Keccak using bellpepper"
documentation = "https://docs.rs/bellpepper-keccak"
Expand Down
2 changes: 1 addition & 1 deletion crates/keccak/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bellpepper-keccak

Keccal library using [bellpepper](https://github.com/lurk-lab/bellpepper) inspired by the [bellman-keccak256](https://github.com/zatoichi-labs/bellman-keccak256) project
Keccal library using [bellpepper](https://github.com/argumentcomputer/bellpepper) inspired by the [bellman-keccak256](https://github.com/zatoichi-labs/bellman-keccak256) project

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/merkle-inclusion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bellpepper-merkle-inclusion"
version = "0.1.0"
edition = "2021"
authors = ["Lurk Lab Engineering <engineering@lurk-lab.com>"]
authors = ["Argument Engineering <engineering@argument.xyz>"]
license.workspace=true
description = "Merkle proof of inclusion using Bellpepper"
homepage.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/merkle-inclusion/tests/gadget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ impl SimpleMerkleTree {
/// The path key is a vector of `Boolean` values, where each value indicates a direction at a node:
/// - `Boolean::constant(false)` for a left turn.
/// - `Boolean::constant(true)` for a right turn.
///
/// The path keys are long as specified by the referred Digest output size bits long, padded with `false` values.
///
/// # Tree Structure
Expand Down
2 changes: 1 addition & 1 deletion crates/ripemd160/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# bellpepper-ripemd160
A [bellpepper](https://github.com/lurk-lab/bellpepper) gadget for the RIPEMD-160 hash function
A [bellpepper](https://github.com/argumentcomputer/bellpepper) gadget for the RIPEMD-160 hash function

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/sha1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# bellpepper-sha1
A [bellpepper](https://github.com/lurk-lab/bellpepper) gadget for the SHA-1 hash function
A [bellpepper](https://github.com/argumentcomputer/bellpepper) gadget for the SHA-1 hash function

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/sha512/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bellpepper-SHA512

This library contains circuit for SHA-512 hash function and circuit representation of u64, created using [bellpepper](https://github.com/lurk-lab/bellpepper).
This library contains circuit for SHA-512 hash function and circuit representation of u64, created using [bellpepper](https://github.com/argumentcomputer/bellpepper).

## References
1. [Bellman implementation of SHA256](https://github.com/zkcrypto/bellman/blob/main/src/gadgets/sha256.rs)
Expand Down
2 changes: 1 addition & 1 deletion crates/uint64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "bellpepper-uint64"
version = "0.1.0"
edition = "2021"
authors = ["Lurk Lab Engineering <engineering@lurk-lab.com>", "Zatoichi Labs <[email protected]>", "Varun Thakore <[email protected]>"]
authors = ["Argument Engineering <engineering@argument.xyz>", "Zatoichi Labs <[email protected]>", "Varun Thakore <[email protected]>"]
license.workspace=true
description = "Uint64 using bellpepper"
documentation = "https://docs.rs/bellpepper-uint64"
Expand Down
2 changes: 1 addition & 1 deletion crates/uint64/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bellpepper-uin64

This library contains circuits for circuit representations of u64, created using [bellpepper](https://github.com/lurk-lab/bellpepper).
This library contains circuits for circuit representations of u64, created using [bellpepper](https://github.com/argumentcomputer/bellpepper).

## License

Expand Down
2 changes: 1 addition & 1 deletion crates/uint64/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl UInt64 {

// Compute the maximum value of the sum so we allocate enough bits for
// the result
let mut max_value = (operands.len() as u128) * (u128::from(u64::max_value()));
let mut max_value = (operands.len() as u128) * (u128::from(u64::MAX));

// Keep track of the resulting value
let mut result_value = Some(0u128);
Expand Down
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = ["lurk-lab"]
github = ["argumentcomputer"]
# 1 or more gitlab.com organizations to allow git sources for
# gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
Expand Down

0 comments on commit 2f90c6b

Please sign in to comment.