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<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 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>
Safety Read more
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>
Safety Read more
Auto Trait Implementations§
impl !Sync for Cmp20Keygen
impl Freeze for Cmp20Keygen
impl RefUnwindSafe for Cmp20Keygen
impl Send 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