Struct oasis_runtime_sdk::crypto::random::RootRng
source · pub struct RootRng { /* private fields */ }
Expand description
A root RNG that can be used to derive domain-separated leaf RNGs.
Implementations§
source§impl RootRng
impl RootRng
sourcepub fn invalid() -> Self
pub fn invalid() -> Self
Create an invalid root RNG which will fail when any leaf RNGs are requested.
sourcepub fn append_local_entropy(&self)
pub fn append_local_entropy(&self)
Append local entropy to the root RNG.
§Non-determinism
Using this method will result in the RNG being non-deterministic.
sourcepub fn append_subcontext(&self)
pub fn append_subcontext(&self)
Append an observed subcontext to RNG transcript.
Auto Trait Implementations§
impl !Freeze for RootRng
impl !RefUnwindSafe for RootRng
impl Send for RootRng
impl !Sync for RootRng
impl Unpin for RootRng
impl UnwindSafe for RootRng
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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