From 28a45028ab1e9490e7f1c052ac4ae75e9bfe29e7 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 16 Apr 2021 14:03:55 +1200 Subject: [PATCH] cargo fmt --- components/zcash_note_encryption/src/lib.rs | 12 ++++++++++-- zcash_primitives/src/sapling/note_encryption.rs | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/zcash_note_encryption/src/lib.rs b/components/zcash_note_encryption/src/lib.rs index 27796b49f..481ee1e81 100644 --- a/components/zcash_note_encryption/src/lib.rs +++ b/components/zcash_note_encryption/src/lib.rs @@ -428,7 +428,13 @@ pub fn try_compact_note_decryption>( plaintext.copy_from_slice(output.enc_ciphertext()); ChaCha20Ietf::xor(key.as_ref(), &[0u8; 12], 1, &mut plaintext); - parse_note_plaintext_without_memo_ivk(domain, ivk, output.epk(), &output.cmstar_bytes(), &plaintext) + parse_note_plaintext_without_memo_ivk( + domain, + ivk, + output.epk(), + &output.cmstar_bytes(), + &plaintext, + ) } /// Recovery of the full note plaintext by the sender. @@ -484,7 +490,9 @@ pub fn try_output_recovery_with_ock>( domain.parse_note_plaintext_without_memo_ovk(&pk_d, &esk, output.epk(), &plaintext)?; let memo = domain.extract_memo(&plaintext); - if let NoteValidity::Valid = check_note_validity::(¬e, output.epk(), &output.cmstar_bytes()) { + if let NoteValidity::Valid = + check_note_validity::(¬e, output.epk(), &output.cmstar_bytes()) + { Some((note, to, memo)) } else { None diff --git a/zcash_primitives/src/sapling/note_encryption.rs b/zcash_primitives/src/sapling/note_encryption.rs index 5ce39ca83..f50e2416d 100644 --- a/zcash_primitives/src/sapling/note_encryption.rs +++ b/zcash_primitives/src/sapling/note_encryption.rs @@ -118,7 +118,7 @@ pub struct SaplingDomain { impl Domain for SaplingDomain

{ type EphemeralSecretKey = jubjub::Scalar; - // It is acceptable for this to be a point because we enforce by consensus that + // It is acceptable for this to be a point because we enforce by consensus that // points must not be small-order, and all points with non-canonical serialization // are small-order. type EphemeralPublicKey = jubjub::ExtendedPoint;