/// Return NI-DKG system parameters
Return NI-DKG system parameters
Return NI - DKG system parameters
pub fn mk_sys_params() -> SysParam {
    let mut f = Vec::new();
    let dst = b"DFX01-with-BLS12381G2_XMD:SHA-256_SSWU_RO_";
    let f0 = htp2_bls12381(dst, "f0");
    for i in 0..LAMBDA_T {
        let s = format!("f{}", i + 1);
        f.push(htp2_bls12381(dst, &s));
    }
    let mut f_h = Vec::new();
    for i in 0..LAMBDA_H {
        let s = format!("f_h{}", i);
        f_h.push(htp2_bls12381(dst, &s));
    }
    SysParam {
        lambda_t: LAMBDA_T,
        lambda_h: LAMBDA_H,
        f0,
        f,
        f_h,
        h: htp2_bls12381(dst, "h"),
    }
}
pub fn mk_sys_params ( ) -> SysParam { let mut f = Vec :: new ( ) ; let dst = b" " ; let f0 = htp2_bls12381 ( dst , " " ) ; for i in 0 .. LAMBDA_T { let s = format ! ( " " i 1 ) ; f . push ( htp2_bls12381 ( dst , & s ) ) ; } let mut f_h = Vec :: new ( ) ; for i in 0 .. LAMBDA_H { let s = format ! ( " " i ) ; f_h . push ( htp2_bls12381 ( dst , & s ) ) ; } SysParam { lambda_t : LAMBDA_T , lambda_h : LAMBDA_H , f0 , f , f_h , h : htp2_bls12381 ( dst , " " ) , } }
Return NI-DKG system parameters
Return NI - DKG system parameters