chore: lint changes

This commit is contained in:
agureev 2026-06-11 16:04:49 +04:00
parent 5d2b998ed2
commit 64b3113ac9
3 changed files with 4 additions and 5 deletions

View File

@ -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 {

View File

@ -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<AccountId>,

View File

@ -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;