pub struct UserAccount<D: KeyValueDB, P: PoolParams> {
    pub pool_id: BoundedNum<P::Fr, { constants::DIVERSIFIER_SIZE_BITS }>,
    pub keys: Keys<P>,
    pub params: P,
    pub state: State<D, P>,
    pub sign_callback: Option<Box<dyn Fn(&[u8]) -> Vec<u8>>>,
}

Fields

pool_id: BoundedNum<P::Fr, { constants::DIVERSIFIER_SIZE_BITS }>keys: Keys<P>params: Pstate: State<D, P>sign_callback: Option<Box<dyn Fn(&[u8]) -> Vec<u8>>>

Implementations

Initializes UserAccount with a spending key that has to be an element of the prime field Fs (p = 6554484396890773809930967563523245729705921265872317281365359162392183254199).

Same as constructor but accepts arbitrary data as spending key.

Generates a new private address.

Attempts to decrypt notes.

Attempts to decrypt account and notes.

Constructs a transaction.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.