This commit is contained in:
Nicholas Ward 2021-10-06 11:22:21 -07:00
parent 097059e026
commit e8805a126a

View File

@ -44,8 +44,7 @@ impl Secp256K1Base {
fn from_biguint(val: BigUint) -> Self {
Self(
val.to_u64_digits()
.iter()
.cloned()
.into_iter()
.pad_using(4, |_| 0)
.collect::<Vec<_>>()[..4]
.try_into()