pub struct Cmp20Keygen {
pub shares: Vec<Buffer>,
pub public_key: Buffer,
}Expand description
Outcome of a CMP20 / GG18 DKG.
Fields§
Per-party share blobs, 71 bytes each. Distribute to N parties.
public_key: BufferJoint P-256 public key (SEC1 compressed, 33 bytes).
Trait Implementations§
Source§impl FromNapiValue for Cmp20Keygen
impl FromNapiValue for Cmp20Keygen
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<Cmp20Keygen>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<Cmp20Keygen>
This function called to convert napi values to native rust values Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for Cmp20Keygen
impl ToNapiValue for Cmp20Keygen
Source§unsafe fn to_napi_value(env: napi_env, val: Cmp20Keygen) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Cmp20Keygen) -> Result<napi_value>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for Cmp20Keygen
impl TypeName for Cmp20Keygen
Source§impl ValidateNapiValue for Cmp20Keygen
impl ValidateNapiValue for Cmp20Keygen
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
This function called to validate whether napi value passed to rust is valid type. Read more
Auto Trait Implementations§
impl Freeze for Cmp20Keygen
impl RefUnwindSafe for Cmp20Keygen
impl Send for Cmp20Keygen
impl Sync for Cmp20Keygen
impl Unpin for Cmp20Keygen
impl UnsafeUnpin for Cmp20Keygen
impl UnwindSafe for Cmp20Keygen
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