pub struct StoredNote {Show 16 fields
pub contract_address: AztecAddress,
pub owner: AztecAddress,
pub storage_slot: Fr,
pub randomness: Fr,
pub note_nonce: Fr,
pub note_hash: Fr,
pub siloed_nullifier: Fr,
pub note_data: Vec<Fr>,
pub nullified: bool,
pub is_pending: bool,
pub nullification_block_number: Option<u64>,
pub leaf_index: Option<u64>,
pub block_number: Option<u64>,
pub tx_index_in_block: Option<u64>,
pub note_index_in_tx: Option<u64>,
pub scopes: Vec<AztecAddress>,
}Expand description
A discovered private note.
Fields§
§contract_address: AztecAddressThe contract that owns this note.
owner: AztecAddressThe owner of the note.
storage_slot: FrThe storage slot within the contract.
randomness: FrRandomness used when constructing the note commitment.
note_nonce: FrThe nonce injected into the note hash preimage by kernels.
note_hash: FrThe note hash (commitment).
siloed_nullifier: FrThe siloed nullifier for this note.
note_data: Vec<Fr>The note’s field data.
nullified: boolWhether this note has been nullified.
is_pending: boolWhether this note is still pending and not yet settled from chain sync.
nullification_block_number: Option<u64>Block number when this note was nullified (if nullified).
leaf_index: Option<u64>Index in the note hash tree (if known).
block_number: Option<u64>Block number when this note was created.
tx_index_in_block: Option<u64>Index of the transaction within the block.
note_index_in_tx: Option<u64>Index of the note within the transaction.
scopes: Vec<AztecAddress>Scopes (accounts) that can access this note.
Trait Implementations§
Source§impl Clone for StoredNote
impl Clone for StoredNote
Source§fn clone(&self) -> StoredNote
fn clone(&self) -> StoredNote
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredNote
impl Debug for StoredNote
Source§impl<'de> Deserialize<'de> for StoredNote
impl<'de> Deserialize<'de> for StoredNote
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoredNote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoredNote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StoredNote
impl Serialize for StoredNote
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StoredNote
impl RefUnwindSafe for StoredNote
impl Send for StoredNote
impl Sync for StoredNote
impl Unpin for StoredNote
impl UnwindSafe for StoredNote
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more