mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Merge pull request #171 from isislovecruft/feature/scalar-default
Impl Default for Scalar
This commit is contained in:
commit
36ade94596
1 changed files with 6 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue