bls12_381: Fix typo in Fp::from_bytes documentation

This commit is contained in:
Jack Grigg 2020-05-02 16:51:07 +12:00
parent 5ff8562744
commit f208c498cf
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ impl Fp {
self.ct_eq(&Fp::zero())
}
/// Attempts to convert a little-endian byte representation of
/// Attempts to convert a big-endian byte representation of
/// a scalar into an `Fp`, failing if the input is not canonical.
pub fn from_bytes(bytes: &[u8; 48]) -> CtOption<Fp> {
let mut tmp = Fp([0, 0, 0, 0, 0, 0]);