fmt & clippy :)

This commit is contained in:
Boog900
2023-06-23 17:58:33 +01:00
parent d1656d378e
commit c1a2aafc83
5 changed files with 30 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ fn amount_decryption(amount: &EcdhInfo, key: Scalar) -> u64 {
// get first 64 bits (d2b in rctTypes.cpp)
let amount_significant_bytes =
amount_scalar.to_bytes()[0 .. 8].try_into().expect("Can't fail");
u64::from_le_bytes(amount_significant_bytes)
}
EcdhInfo::Bulletproof { amount } => {