diff --git a/bindings/wasm/src/verification/wasm_method_data.rs b/bindings/wasm/src/verification/wasm_method_data.rs index a8cf793207..58a9c65820 100644 --- a/bindings/wasm/src/verification/wasm_method_data.rs +++ b/bindings/wasm/src/verification/wasm_method_data.rs @@ -125,3 +125,6 @@ impl From for CustomMethodData { value.0 } } + +impl_wasm_clone!(WasmCustomMethodData, CustomMethodData); +impl_wasm_json!(WasmCustomMethodData, CustomMethodData); diff --git a/identity_verification/src/verification_method/method.rs b/identity_verification/src/verification_method/method.rs index 349ab6ae1a..c22cecd059 100644 --- a/identity_verification/src/verification_method/method.rs +++ b/identity_verification/src/verification_method/method.rs @@ -246,7 +246,9 @@ impl KeyComparable for VerificationMethod { } } -// Horrible workaround for a tracked serde issue https://github.com/serde-rs/serde/issues/2200 +// Horrible workaround for a tracked serde issue https://github.com/serde-rs/serde/issues/2200. Serde doesn't "consume" +// the input when deserializing flattened enums (MethodData in this case) cousing duplication of data (in this case +// it ends up in the properties object). This workaround simply remove the duplication. #[derive(Deserialize)] struct _VerificationMethod { #[serde(deserialize_with = "deserialize_id_with_fragment")]