Enum miden_objects::transaction::InputNote
source · pub enum InputNote {
Authenticated {
note: Note,
proof: NoteInclusionProof,
},
Unauthenticated {
note: Note,
},
}Expand description
An input note for a transaction.
Variants§
Authenticated
Input notes whose existences in the chain is verified by the transaction kernel.
Unauthenticated
Input notes whose existence in the chain is not verified by the transaction kernel, but instead is delegated to the rollup kernels.
Implementations§
source§impl InputNote
impl InputNote
sourcepub fn authenticated(note: Note, proof: NoteInclusionProof) -> Self
pub fn authenticated(note: Note, proof: NoteInclusionProof) -> Self
Returns an authenticated InputNote.
sourcepub fn unauthenticated(note: Note) -> Self
pub fn unauthenticated(note: Note) -> Self
Returns an unauthenticated InputNote.
sourcepub fn proof(&self) -> Option<&NoteInclusionProof>
pub fn proof(&self) -> Option<&NoteInclusionProof>
Returns a reference to the inclusion proof of the note.
sourcepub fn origin(&self) -> Option<&NoteOrigin>
pub fn origin(&self) -> Option<&NoteOrigin>
Returns a reference to the origin of the note.
Trait Implementations§
source§impl Deserializable for InputNote
impl Deserializable for InputNote
source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl From<&InputNote> for InputNoteCommitment
impl From<&InputNote> for InputNoteCommitment
source§impl From<InputNote> for InputNoteCommitment
impl From<InputNote> for InputNoteCommitment
source§impl PartialEq for InputNote
impl PartialEq for InputNote
source§impl Serializable for InputNote
impl Serializable for InputNote
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
source§impl ToInputNoteCommitments for &InputNote
impl ToInputNoteCommitments for &InputNote
source§impl ToInputNoteCommitments for InputNote
impl ToInputNoteCommitments for InputNote
impl Eq for InputNote
impl StructuralPartialEq for InputNote
Auto Trait Implementations§
impl Freeze for InputNote
impl RefUnwindSafe for InputNote
impl Send for InputNote
impl Sync for InputNote
impl Unpin for InputNote
impl UnwindSafe for InputNote
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)