pub struct Function { /* private fields */ }

Implementations§

source§

impl Function

source

pub const fn new() -> Self

Create a new / empty function context

source

pub fn ring_signer_init( &mut self, ring_size: usize, real_index: usize, root_view_private: &RootViewPrivate, subaddress_spend_private: &SubaddressSpendPrivate, value: u64, message: &[u8], token_id: u64, onetime_private_key: Option<TxOnetimeKey> ) -> Result<&mut RingSigner, Error>

Setup ring-signer context

this uses out-pointer based init to avoid stack allocation see: https://doc.rust-lang.org/core/mem/union.MaybeUninit.html#out-pointers

source

pub fn ring_signer(&mut self) -> Option<&mut RingSigner>

Fetch ring signer context

source

pub fn ring_signer_ref(&self) -> Option<&RingSigner>

Fetch ring signer context

source

pub fn summarizer_init( &mut self, message: &[u8; 32], block_version: BlockVersion, num_outputs: usize, num_inputs: usize, view_private_key: &RootViewPrivate, change_subaddress: &PublicSubaddress ) -> Result<&mut Summarizer<MAX_RECORDS>, Error>

Setup summarizer context

this uses out-pointer based init to avoid stack allocation see: https://doc.rust-lang.org/core/mem/union.MaybeUninit.html#out-pointers

source

pub fn summarizer(&mut self) -> Option<&mut Summarizer<MAX_RECORDS>>

Fetch summarizer context

source

pub fn summarizer_ref(&self) -> Option<&Summarizer<MAX_RECORDS>>

Fetch summarizer context

source

pub fn ident_init( &mut self, identity_index: u32, uri: &str, challenge: &[u8] ) -> Result<&mut Ident, Error>

Initialise identity function

source

pub fn ident_ref(&self) -> Option<&Ident>

Fetch ident context

source

pub fn clear(&mut self)

Clear context, executing drop if required

Trait Implementations§

source§

impl Default for Function

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V