Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykoren committed Jul 31, 2024
1 parent fe88163 commit fc38730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions zcash_primitives/src/transaction/components/orchard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use orchard::{
value::{NoteValue, ValueCommitment},
Action, Anchor,
};
use zcash_note_encryption::note_bytes::NoteBytes;
use zcash_encoding::{Array, CompactSize, Vector};
use zcash_note_encryption::note_bytes::NoteBytes;

use super::Amount;
use crate::transaction::Transaction;
Expand Down Expand Up @@ -189,7 +189,8 @@ pub fn read_note_ciphertext<R: Read>(
epk_bytes: [0u8; 32],
enc_ciphertext: <OrchardVanilla as OrchardDomainCommon>::NoteCiphertextBytes::from_slice(
[0u8; OrchardVanilla::ENC_CIPHERTEXT_SIZE].as_ref(),
).expect("OrchardVanilla note ciphertext is of the correct size"),
)
.expect("OrchardVanilla note ciphertext is of the correct size"),
out_ciphertext: [0u8; 80],
};

Expand All @@ -207,7 +208,8 @@ pub fn read_zsa_note_ciphertext<R: Read>(
epk_bytes: [0u8; 32],
enc_ciphertext: <OrchardZSA as OrchardDomainCommon>::NoteCiphertextBytes::from_slice(
[0u8; OrchardZSA::ENC_CIPHERTEXT_SIZE].as_ref(),
).expect("OrchardZSA note ciphertext is of the correct size"),
)
.expect("OrchardZSA note ciphertext is of the correct size"),
out_ciphertext: [0u8; 80],
};

Expand Down
2 changes: 1 addition & 1 deletion zcash_primitives/src/transaction/components/sapling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use zcash_protocol::consensus::{BlockHeight, NetworkUpgrade, Parameters, ZIP212_
use std::io::{self, Read, Write};

use zcash_encoding::{Array, CompactSize, Vector};
use zcash_note_encryption::{ENC_CIPHERTEXT_SIZE, EphemeralKeyBytes, OUT_CIPHERTEXT_SIZE};
use zcash_note_encryption::{EphemeralKeyBytes, ENC_CIPHERTEXT_SIZE, OUT_CIPHERTEXT_SIZE};

use crate::{
sapling::{
Expand Down

0 comments on commit fc38730

Please sign in to comment.