// The conversion is deliberately implemented directly, i.e., without
// using From-conversions involving intermediate types, because the
// panic on empty coefficients is currently specific to converting
// the transcript to the contained threshold signature public key.
The conversion is deliberately implemented directly, i.e., without
using From-conversions involving intermediate types, because the
panic on empty coefficients is currently specific to converting
the transcript to the contained threshold signature public key.
The conversion is deliberately implemented directly i . e . without using From - conversions involving intermediate types because the panic on empty coefficients is currently specific to converting the transcript to the contained threshold signature public key .
fn from(csp_ni_dkg_transcript: &CspNiDkgTranscript) -> Self {
        match csp_ni_dkg_transcript {
            CspNiDkgTranscript::Groth20_Bls12_381(transcript) => Self::ThresBls12_381(
                transcript
                    .public_coefficients
                    .coefficients
                    .get(0)
                    .copied()
                    .expect("coefficients empty"),
            ),
        }
    }
fn from ( csp_ni_dkg_transcript : & CspNiDkgTranscript ) -> Self { match csp_ni_dkg_transcript { CspNiDkgTranscript :: Groth20_Bls12_381 ( transcript ) => Self :: ThresBls12_381 ( transcript . public_coefficients . coefficients . get ( 0 ) . copied ( ) . expect ( " " ) , ) , } }
The conversion is deliberately implemented directly, i.e., without
using From-conversions involving intermediate types, because the
panic on empty coefficients is currently specific to converting
the transcript to the contained threshold signature public key.
The conversion is deliberately implemented directly i . e . without using From - conversions involving intermediate types because the panic on empty coefficients is currently specific to converting the transcript to the contained threshold signature public key .
csp_ni_dkg_transcript
&CspNiDkgTranscript