zebra_chain/sprout/
note.rs1mod ciphertexts;
4mod mac;
5mod nullifiers;
6
7#[cfg(any(test, feature = "proptest-impl"))]
8mod arbitrary;
9
10use crate::{
11 amount::{Amount, NonNegative},
12 transaction::Memo,
13};
14
15use super::{commitment::CommitmentRandomness, keys::PayingKey};
16
17pub use mac::Mac;
18
19pub use ciphertexts::EncryptedNote;
20
21pub use nullifiers::{Nullifier, NullifierSeed};
22
23#[derive(Clone, Debug)]
29#[cfg_attr(
30 any(test, feature = "proptest-impl"),
31 derive(proptest_derive::Arbitrary)
32)]
33pub struct Note {
34 pub paying_key: PayingKey,
36 pub value: Amount<NonNegative>,
39 pub rho: NullifierSeed,
41 pub rcm: CommitmentRandomness,
43 pub memo: Memo,
45}