diff --git a/lee/state_machine/core/src/encryption/mod.rs b/lee/state_machine/core/src/encryption/mod.rs index 983dd330..5fa80b60 100644 --- a/lee/state_machine/core/src/encryption/mod.rs +++ b/lee/state_machine/core/src/encryption/mod.rs @@ -43,7 +43,7 @@ impl std::fmt::Debug for Ciphertext { pub type ViewTag = u8; -/// Encrypted private-account note for one output +/// Encrypted private-account note for one output. #[derive(Serialize, Deserialize, BorshSerialize, BorshDeserialize)] #[cfg_attr(any(feature = "host", test), derive(Debug, Clone, PartialEq, Eq))] pub struct EncryptedAccountData { diff --git a/lee/state_machine/src/privacy_preserving_transaction/message.rs b/lee/state_machine/src/privacy_preserving_transaction/message.rs index 899771bf..07c7464e 100644 --- a/lee/state_machine/src/privacy_preserving_transaction/message.rs +++ b/lee/state_machine/src/privacy_preserving_transaction/message.rs @@ -7,11 +7,10 @@ use lee_core::{ use sha2::{Digest as _, Sha256}; use crate::{AccountId, error::LeeError}; +pub use lee_core::{EncryptedAccountData, ViewTag}; const PREFIX: &[u8; 32] = b"/LEE/v0.3/Message/Privacy/\x00\x00\x00\x00\x00\x00"; -pub use lee_core::{EncryptedAccountData, ViewTag}; - #[derive(Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize)] pub struct Message { pub public_account_ids: Vec, diff --git a/lee/state_machine/src/state.rs b/lee/state_machine/src/state.rs index 9bb1c639..9234795e 100644 --- a/lee/state_machine/src/state.rs +++ b/lee/state_machine/src/state.rs @@ -1657,7 +1657,7 @@ pub mod tests { } /// After a valid fully-private tx is proven, tampering with a note's epk should - /// make the shielding proof invalid + /// make the shielding proof invalid. #[test] fn privacy_tampered_epk_is_rejected() { use crate::validated_state_diff::ValidatedStateDiff; @@ -1683,7 +1683,7 @@ pub mod tests { } /// After a valid fully-private tx is proven, tampering with a note's view tag should - /// make the shielding proof invalid + /// make the shielding proof invalid. #[test] fn privacy_tampered_view_tag_is_rejected() { use crate::validated_state_diff::ValidatedStateDiff;