pub struct Gg18;Expand description
GG18 threshold-ECDSA over P-256. Prefer Cmp20 for new deployments.
Implementations§
Source§impl Gg18
impl Gg18
pub fn into_reference(val: Gg18, env: Env) -> Result<Reference<Gg18>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Gg18>>
Source§impl Gg18
impl Gg18
Sourcepub fn keygen(threshold: u32, party_count: u32) -> NapiResult<Cmp20Keygen>
pub fn keygen(threshold: u32, party_count: u32) -> NapiResult<Cmp20Keygen>
Run a GG18 DKG. Returns the same shape as Cmp20.keygen.
Trait Implementations§
Source§impl FromNapiMutRef for Gg18
impl FromNapiMutRef for Gg18
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for Gg18
impl FromNapiRef for Gg18
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &Gg18
impl FromNapiValue for &Gg18
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut Gg18
impl FromNapiValue for &mut Gg18
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for Gg18
impl ToNapiValue for Gg18
Source§unsafe fn to_napi_value(env: napi_env, val: Gg18) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Gg18) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &Gg18
impl ValidateNapiValue for &Gg18
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut Gg18
impl ValidateNapiValue for &mut Gg18
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for Gg18
impl RefUnwindSafe for Gg18
impl Send for Gg18
impl Sync for Gg18
impl Unpin for Gg18
impl UnsafeUnpin for Gg18
impl UnwindSafe for Gg18
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