Struct switchboard_program::VrfAccount
source · [−]pub struct VrfAccount<'a> { /* private fields */ }
Implementations
sourceimpl<'a> VrfAccount<'a>
impl<'a> VrfAccount<'a>
pub fn new(account: &'a AccountInfo<'a>) -> Result<Self, ProgramError>
sourcepub fn get_verified_randomness(&self) -> Result<Vec<u8>, ProgramError>
pub fn get_verified_randomness(&self) -> Result<Vec<u8>, ProgramError>
returns the current verified randomness value held in the account. returns ProgramError if not randomness currently exists or if the number of proof verificaitons is less than the reuired minimum numner of verifications.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for VrfAccount<'a>
impl<'a> !Send for VrfAccount<'a>
impl<'a> !Sync for VrfAccount<'a>
impl<'a> Unpin for VrfAccount<'a>
impl<'a> !UnwindSafe for VrfAccount<'a>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more