pub fn new_with_key(key: &[u8]) -> Result<Self> {
        let sk = CS::Group::deserialize_scalar(key)?;
        let pk = CS::Group::base_elem() * &sk;
        Ok(Self { sk, pk })
    }
/// Produces a new instance of a [VoprfServer] using a supplied set of
/// bytes to represent the server's private key
///
/// # Errors
/// [`Error::Deserialization`] if the private key is not a valid point on
/// the group or zero.
Produces a new instance of a [VoprfServer] using a supplied set of
bytes to represent the server's private key
Produces a new instance of a [ VoprfServer ] using a supplied set of bytes to represent the server ' s private key
pub fn new_with_key(key: &[u8]) -> Result<Self> {
        let sk = CS::Group::deserialize_scalar(key)?;
        let pk = CS::Group::base_elem() * &sk;
        Ok(Self { sk, pk })
    }
pub fn new_with_key ( key : & [ u8 ] ) -> Result < Self > { let sk = CS :: Group :: deserialize_scalar ( key ) ? ; let pk = CS :: Group :: base_elem ( ) * & sk ; Ok ( Self { sk , pk } ) }
Produces a new instance of a [VoprfServer] using a supplied set of
bytes to represent the server's private key
Produces a new instance of a [ VoprfServer ] using a supplied set of bytes to represent the server ' s private key
key
&[u8]
key
&[u8]
errors
[`Error::Deserialization`] if the private key is not a valid point on
the group or zero.
[ ` Error :: Deserialization ` ] if the private key is not a valid point on the group or zero .