Explorar el Código

Remove unused field n from arctic::SecKey

Ian Goldberg hace 3 meses
padre
commit
e4db0a9cc2
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      src/arctic.rs

+ 0 - 2
src/arctic.rs

@@ -8,7 +8,6 @@ use sha2::Sha256;
 type PubKey = RistrettoPoint;
 
 pub struct SecKey {
-    n: u32,
     t: u32,
     k: u32,
     sk: Scalar,
@@ -31,7 +30,6 @@ pub fn keygen(n: u32, t: u32) -> (PubKey, Vec<SecKey>) {
     let pubkey = shine::commit(&shamirpoly.coeffs[0]);
     for k in 1..=n {
         seckeys.push(SecKey {
-            n,
             t,
             k,
             sk: shamirpoly.eval(&Scalar::from(k)),