Skip to content

Commit 51a4bec

Browse files
authored
chore: rename peerdas (#105)
1 parent e9df67c commit 51a4bec

19 files changed

+38
-38
lines changed

.github/scripts/compile_all_targets_c_sharp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
55
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
66

7-
OUT_DIR="$PROJECT_ROOT/bindings/csharp/csharp_code/PeerDASKZG.bindings/runtimes"
7+
OUT_DIR="$PROJECT_ROOT/bindings/csharp/csharp_code/EthKZG.bindings/runtimes"
88
LIB_TYPE="dynamic"
99
LIB_NAME="c_eth_kzg"
1010
$PROJECT_ROOT/scripts/compile_to_native.sh Darwin arm64 $LIB_NAME $LIB_TYPE $OUT_DIR

.github/workflows/release-csharp-bindings.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
.github/scripts/compile_all_targets_c_sharp.sh
7272
7373
- name: Restore NuGet packages
74-
working-directory: bindings/csharp/csharp_code/PeerDASKZG.bindings
74+
working-directory: bindings/csharp/csharp_code/EthKZG.bindings
7575
run: dotnet restore
7676

7777
- name: Package with dotnet pack
78-
working-directory: bindings/csharp/csharp_code/PeerDASKZG.bindings
78+
working-directory: bindings/csharp/csharp_code/EthKZG.bindings
7979
run: dotnet pack -c release --no-restore -o nupkgs -p:Version=${{ env.VERSION }} -p:ContinuousIntegrationBuild=true
8080

8181
- name: Publish to Nuget
82-
working-directory: bindings/csharp/csharp_code/PeerDASKZG.bindings
82+
working-directory: bindings/csharp/csharp_code/EthKZG.bindings
8383
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_RELEASE_TOKEN }} --source https://api.nuget.org/v3/index.json

.github/workflows/release-rust-crates.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ jobs:
3131
# These steps are in a specific order so crate dependencies are updated first
3232
- name: Publish bls12_381
3333
run: |
34-
cargo publish --package crate_crypto_internal_peerdas_bls12_381
34+
cargo publish --package crate_crypto_internal_eth_kzg_bls12_381
3535
env:
3636
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }}
3737

3838
- name: Publish polynomial
3939
run: |
40-
cargo publish --package crate_crypto_internal_peerdas_polynomial
40+
cargo publish --package crate_crypto_internal_eth_kzg_polynomial
4141
env:
4242
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }}
4343

4444
- name: Publish erasure_codes
4545
run: |
46-
cargo publish --package crate_crypto_internal_peerdas_erasure_codes
46+
cargo publish --package crate_crypto_internal_eth_kzg_erasure_codes
4747
env:
4848
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }}
4949

Cargo.lock

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ repository = "https://github.com/crate-crypto/rust-eth-kzg"
2727
# These names are essentially a way to achieve scoping when we publish to crates.io
2828
# Ideally we don't publish bls12_381 and polynomial, but crates.io requires
2929
# all dependencies to be published and not local.
30-
bls12_381 = { package = "crate_crypto_internal_peerdas_bls12_381", version = "0.3.0", path = "cryptography/bls12_381" }
31-
polynomial = { package = "crate_crypto_internal_peerdas_polynomial", version = "0.3.0", path = "cryptography/polynomial" }
32-
erasure_codes = { package = "crate_crypto_internal_peerdas_erasure_codes", version = "0.3.0", path = "cryptography/erasure_codes" }
30+
bls12_381 = { package = "crate_crypto_internal_eth_kzg_bls12_381", version = "0.3.0", path = "cryptography/bls12_381" }
31+
polynomial = { package = "crate_crypto_internal_eth_kzg_polynomial", version = "0.3.0", path = "cryptography/polynomial" }
32+
erasure_codes = { package = "crate_crypto_internal_eth_kzg_erasure_codes", version = "0.3.0", path = "cryptography/erasure_codes" }
3333
rust_eth_kzg = { version = "0.3.0", path = "eip7594" }
3434
kzg_multi_open = { package = "crate_crypto_kzg_multi_open_fk20", version = "0.3.0", path = "cryptography/kzg_multi_open" }
3535
c_eth_kzg = { version = "0.3.0", path = "bindings/c" }

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### What
66

7-
A cryptographic library that is compatible with the PeerDAS KZG commitment scheme used in the Ethereum blockchain.
7+
A cryptographic library that is compatible with the KZG commitment scheme used in the Ethereum blockchain for PeerDAS.
88

99
### Why
1010

bindings/csharp/rust_code/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "csharp_peerdas_kzg"
2+
name = "csharp_eth_kzg"
33
version = { workspace = true }
44
authors = { workspace = true }
55
edition = { workspace = true }

bindings/golang/prover.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package peerdas_kzg
1+
package eth_kzg
22

33
/*
44
#cgo darwin,amd64 LDFLAGS: ./build/x86_64-apple-darwin/libc_eth_kzg.a

bindings/golang/prover_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package peerdas_kzg
1+
package eth_kzg
22

33
import (
44
"testing"

cryptography/bls12_381/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "crate_crypto_internal_peerdas_bls12_381"
3-
description = "This crate provides the internal implementation of the BLS12-381 curve for the PeerDAS project."
2+
name = "crate_crypto_internal_eth_kzg_bls12_381"
3+
description = "This crate provides the internal implementation of the BLS12-381 curve for the Eth KZG project."
44
version = { workspace = true }
55
authors = { workspace = true }
66
edition = { workspace = true }

cryptography/bls12_381/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ that we can publish the multi-opening protocol to crates.io. Nevertheless, insta
1212

1313
```toml
1414
[dependencies]
15-
crate_crypto_internal_peerdas_bls12_381 = "0.1.0"
15+
crate_crypto_internal_eth_kzg_bls12_381 = "0.1.0"
1616
```

cryptography/bls12_381/benches/benchmark.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate_crypto_internal_peerdas_bls12_381::ff::Field;
2-
use crate_crypto_internal_peerdas_bls12_381::{batch_inversion, Scalar};
1+
use crate_crypto_internal_eth_kzg_bls12_381::ff::Field;
2+
use crate_crypto_internal_eth_kzg_bls12_381::{batch_inversion, Scalar};
33
use criterion::{black_box, criterion_group, criterion_main, Criterion};
44

55
pub fn batch_inversion(c: &mut Criterion) {

cryptography/erasure_codes/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "crate_crypto_internal_peerdas_erasure_codes"
2+
name = "crate_crypto_internal_eth_kzg_erasure_codes"
33
description = "This crate provides an implementation of erasure encoding and decoding"
44
version = { workspace = true }
55
authors = { workspace = true }

cryptography/erasure_codes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ that we can publish the eip7594 crate to crates.io. Nevertheless, installation o
1111

1212
```toml
1313
[dependencies]
14-
crate_crypto_internal_peerdas_erasure_codes = "0.1.0"
14+
crate_crypto_internal_eth_kzg_erasure_codes = "0.1.0"
1515
```

cryptography/erasure_codes/benches/benchmark.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::ops::Range;
22

33
use bls12_381::Scalar;
4-
use crate_crypto_internal_peerdas_erasure_codes::{BlockErasureIndices, ReedSolomon};
4+
use crate_crypto_internal_eth_kzg_erasure_codes::{BlockErasureIndices, ReedSolomon};
55
use criterion::{black_box, criterion_group, criterion_main, Criterion};
66

77
pub fn bench_erasure_code_decoding_4096_8192(c: &mut Criterion) {

cryptography/polynomial/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "crate_crypto_internal_peerdas_polynomial"
2+
name = "crate_crypto_internal_eth_kzg_polynomial"
33
description = "This crate provides utility methods that are needed for Polynomial objects"
44
version = { workspace = true }
55
authors = { workspace = true }

cryptography/polynomial/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ that we can publish the multi-opening protocol to crates.io. Nevertheless, insta
1212

1313
```toml
1414
[dependencies]
15-
crate_crypto_internal_peerdas_polynomial = "0.1.0"
15+
crate_crypto_internal_eth_kzg_polynomial = "0.1.0"
1616
```

cryptography/polynomial/benches/benchmark.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use bls12_381::Scalar;
22
use bls12_381::{ff::Field, group::Group, G1Projective};
3-
use crate_crypto_internal_peerdas_polynomial::monomial::lagrange_interpolate;
4-
use crate_crypto_internal_peerdas_polynomial::{domain::Domain, monomial::poly_eval};
3+
use crate_crypto_internal_eth_kzg_polynomial::monomial::lagrange_interpolate;
4+
use crate_crypto_internal_eth_kzg_polynomial::{domain::Domain, monomial::poly_eval};
55
use criterion::{black_box, criterion_group, criterion_main, Criterion};
66

77
pub fn bench_poly_eval(c: &mut Criterion) {

release-please-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"bindings/java/java_code/build.gradle",
5050
{
5151
"type": "xml",
52-
"path": "bindings/csharp/csharp_code/PeerDASKZG.bindings/PeerDASKZG.csproj",
52+
"path": "bindings/csharp/csharp_code/EthKZG.bindings/EthKZG.csproj",
5353
"xpath": "//Project/PropertyGroup/Version"
5454
},
5555
{

0 commit comments

Comments
 (0)