mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-09 23:39:34 +00:00
feat(lee): add dummy account type for function-privacy padding
This commit is contained in:
parent
640d4f6502
commit
3ec074095d
@ -93,6 +93,20 @@ pub enum InputAccountIdentity {
|
||||
},
|
||||
}
|
||||
|
||||
/// A struct containing necessary data for dummy nullifier and
|
||||
/// commitment generation.
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct DummyInput {
|
||||
/// The seed used for generating the dummy nullifier.
|
||||
pub nullifier_seed: [u8; 32],
|
||||
/// The seed used for generating the dummy commitment.
|
||||
pub commitment_seed: [u8; 32],
|
||||
/// The dummy ciphertext, epk, and view tag.
|
||||
pub note: EncryptedAccountData,
|
||||
/// The dummy root.
|
||||
pub commitment_root: CommitmentSetDigest,
|
||||
}
|
||||
|
||||
impl InputAccountIdentity {
|
||||
#[must_use]
|
||||
pub const fn is_public(&self) -> bool {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
)]
|
||||
|
||||
pub use circuit_io::{
|
||||
InputAccountIdentity, PrivacyPreservingCircuitInput, PrivacyPreservingCircuitOutput,
|
||||
DummyInput, InputAccountIdentity, PrivacyPreservingCircuitInput, PrivacyPreservingCircuitOutput,
|
||||
};
|
||||
pub use commitment::{
|
||||
Commitment, CommitmentSetDigest, DUMMY_COMMITMENT, DUMMY_COMMITMENT_HASH, MembershipProof,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user