Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed testnet_v2 to couscous #60

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion kate/recovery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pub mod sparse_slice_read;
pub mod testnet;

#[cfg(feature = "std")]
pub mod testnet_v2;
pub mod couscous;
6 changes: 3 additions & 3 deletions kate/src/gridgen/tests/commitments.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::{gridgen::*, testnet, testnet_v2, Seed};
use crate::{couscous, gridgen::*, testnet, Seed};
use avail_core::{AppExtrinsic, AppId, BlockLengthColumns, BlockLengthRows};
use hex_literal::hex;
use kate_recovery::{
Expand Down Expand Up @@ -152,7 +152,7 @@ fn test_zero_deg_poly_commit(row_values: Vec<u8>) {
println!("Row: {:?}", ev.evals);

let pg = ev.make_polynomial_grid().unwrap();
let pmp = testnet_v2::multiproof_params();
let pmp = couscous::multiproof_params();
println!("Poly: {:?}", pg.inner[0]);
let commitment = pg.commitment(&pmp, 0).unwrap().to_bytes().unwrap();

Expand All @@ -177,7 +177,7 @@ fn test_zero_deg_poly_commit(row_values: Vec<u8>) {
content: content.try_into().unwrap(),
};
let verification =
kate_recovery::proof::verify(&testnet_v2::public_params(), dims, &commitment, &cell);
kate_recovery::proof::verify(&couscous::public_params(), dims, &commitment, &cell);
assert!(verification.is_ok());
assert!(verification.unwrap())
}
Expand Down
6 changes: 3 additions & 3 deletions kate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub mod testnet {
// TODO: load pp for both dusk & arkworks from same file
// To be used for incentivised testnet
#[cfg(feature = "std")]
pub mod testnet_v2 {
pub mod couscous {
use super::*;
use poly_multiproof::ark_serialize::CanonicalDeserialize;
use poly_multiproof::m1_blst;
Expand Down Expand Up @@ -243,8 +243,8 @@ pub mod testnet_v2 {

#[test]
fn test_consistent_testnet_params() {
let pmp = testnet_v2::multiproof_params();
let pmp2 = testnet_v2::public_params();
let pmp = couscous::multiproof_params();
let pmp2 = couscous::public_params();

let points = DensePolynomial::<Fr>::rand(1023, &mut thread_rng()).coeffs;
let points2: Vec<_> = points
Expand Down
Loading