Impl Default for Scalar.

This commit is contained in:
Isis Lovecruft 2018-07-20 21:36:38 +00:00
parent 73b3a9617b
commit b087551696
Failed to extract signature

View file

@ -426,6 +426,12 @@ where
}
}
impl Default for Scalar {
fn default() -> Scalar {
Scalar::zero()
}
}
impl From<u8> for Scalar {
fn from(x: u8) -> Scalar {
let mut s_bytes = [0u8; 32];