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 16, 2023
1 parent 4337c3c commit 5987546
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 @@ -289,6 +289,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 5987546

Please sign in to comment.