Skip to content

Commit 435aa8b

Browse files
committed
Seed phrases
1 parent bb08915 commit 435aa8b

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

src/pedersen.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<S: PedersenSuite> Verifier<S> for Public<S> {
143143
#[cfg(test)]
144144
pub(crate) mod testing {
145145
use super::*;
146-
use crate::testing::{self as common, random_val, TEST_SEED};
146+
use crate::testing::{self as common, random_val, PEDERSEN_BASE_SEED, TEST_SEED};
147147

148148
pub fn prove_verify<S: PedersenSuite>() {
149149
use pedersen::{Prover, Verifier};
@@ -163,9 +163,10 @@ pub(crate) mod testing {
163163
}
164164

165165
pub fn blinding_base_check<S: PedersenSuite>() {
166-
const BLINDING_BASE_SEED: &[u8] = b"w3f/ring-proof/blinding";
167-
let p = S::data_to_point(BLINDING_BASE_SEED).unwrap();
168-
assert_eq!(S::BLINDING_BASE, p);
166+
assert_eq!(
167+
S::data_to_point(PEDERSEN_BASE_SEED).unwrap(),
168+
S::BLINDING_BASE
169+
);
169170
}
170171

171172
#[macro_export]

src/suites/testing.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ impl Suite for TestSuite {
2222

2323
impl PedersenSuite for TestSuite {
2424
const BLINDING_BASE: AffinePoint = {
25-
const X: BaseField =
26-
MontFp!("2842812182132742151291439804105987992770071362848070020835328675429531065386");
25+
const X: BaseField = MontFp!(
26+
"56166678312616788007069565072535608368274441012407488217322349490274061293828"
27+
);
2728
const Y: BaseField = MontFp!(
28-
"51537589290258453714586392305999864217349499404270029291993413345863140891436"
29+
"55452291704810100370049689540036330133850202475722787526070685722371210180696"
2930
);
3031
AffinePoint::new_unchecked(X, Y)
3132
};

src/testing.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ use ark_std::{vec, vec::Vec};
55
use crate::*;
66
use ark_std::{rand::RngCore, UniformRand};
77

8+
// The basis that hides the hidden light, which eludes the mind and creates darkness for those who see.
9+
pub const PEDERSEN_BASE_SEED: &[u8] =
10+
b"basis caecans lucis occultae, quae mentem fugit et tenebras iis qui vident creat";
11+
12+
// "The substratum of the accumulator, which in the silence of time guards the hidden secret"
13+
pub const ACCUMULATOR_BASE_SEED: &[u8] =
14+
b"substratum accumulatoris, quod in silentio temporis arcanum absconditum custodit";
15+
16+
// "A shadow that fills the void left by lost souls, echoing among the darkness"
17+
pub const PADDING_SEED: &[u8] =
18+
b"umbra quae vacuum implet, ab animabus perditis relictum, inter tenebras resonans";
19+
820
pub const TEST_SEED: &[u8] = b"seed";
921

1022
// Zcash SRS file derived from (https://zfnd.org/conclusion-of-the-powers-of-tau-ceremony).

0 commit comments

Comments
 (0)