Struct scrambledb::setup::ConverterContext
source · pub struct ConverterContext { /* private fields */ }
Implementations§
source§impl ConverterContext
impl ConverterContext
sourcepub fn setup(randomness: &mut Randomness) -> Result<Self, Error>
pub fn setup(randomness: &mut Randomness) -> Result<Self, Error>
§Converter Setup
On setup the converter initializes a coPRF evaluator context.
Inputs:
msk: Nmsk uniformly random bytes
Output:
coprf_evaluator_context: coPRFEvaluatorContext
fn setup_converter_context(msk) -> ConverterContext:
return coPRFEvaluatorContext::new(msk)
Auto Trait Implementations§
impl Freeze for ConverterContext
impl RefUnwindSafe for ConverterContext
impl Send for ConverterContext
impl Sync for ConverterContext
impl Unpin for ConverterContext
impl UnwindSafe for ConverterContext
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