k256_scalar_from_bytes

Function k256_scalar_from_bytes 

Source
pub fn k256_scalar_from_bytes(bytes: &[u8]) -> Result<Scalar, CryptoError>
Expand description

Creates secp256k1 secret scalar from the given bytes. Note that this function allows zero scalars.