From ecc5c3fc79057ac068709aa7a979c4dc02770d0b Mon Sep 17 00:00:00 2001 From: agureev Date: Wed, 24 Jun 2026 21:41:59 +0400 Subject: [PATCH] doc: add comment regarding `view_tag` computation --- .../guest/src/bin/privacy_preserving_circuit/output.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/program_methods/guest/src/bin/privacy_preserving_circuit/output.rs b/program_methods/guest/src/bin/privacy_preserving_circuit/output.rs index 64c70c1b..d9ca92b5 100644 --- a/program_methods/guest/src/bin/privacy_preserving_circuit/output.rs +++ b/program_methods/guest/src/bin/privacy_preserving_circuit/output.rs @@ -282,6 +282,14 @@ fn emit_private_output( let commitment_post = Commitment::new(account_id, &post_with_updated_nonce); let (shared_secret, epk) = SharedSecretKey::encapsulate_deterministic(vpk, esk, *output_index); + + // Currently the view tag is properlty generated for all accounts. + // To increase privacy, this will be changed in the later version + // to only be generated explicitly for initialized accounts and + // fed by the prover directly for updated accounts. + // + // See issue 573: + // https://github.com/logos-blockchain/logos-execution-zone/issues/573 let view_tag = EncryptedAccountData::compute_view_tag(npk, vpk); let encrypted_account = EncryptionScheme::encrypt(