Skip to content

Commit

Permalink
DkgPublicKey wasm-binding now derives From and AsRef.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Aug 18, 2023
1 parent 1800d3c commit ce7d280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ferveo/src/bindings_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ pub fn decrypt_with_shared_secret(
type InnerDkgPublicKey = api::DkgPublicKey;

#[wasm_bindgen]
#[derive(
derive_more::From,
derive_more::AsRef,
)]
pub struct DkgPublicKey(InnerDkgPublicKey);

generate_equals!(DkgPublicKey);
Expand Down

0 comments on commit ce7d280

Please sign in to comment.