diff --git a/crates/wasm/src/types.rs b/crates/wasm/src/types.rs index 73ff1df78..2f7b0938c 100644 --- a/crates/wasm/src/types.rs +++ b/crates/wasm/src/types.rs @@ -243,6 +243,11 @@ pub struct Presentation(tlsn_core::presentation::Presentation); #[wasm_bindgen] impl Presentation { + /// Returns the verifying key. + pub fn verifying_key(&self) -> VerifyingKey { + self.0.verifying_key().into() + } + /// Verifies the presentation. pub fn verify(&self) -> Result { let provider = CryptoProvider::default();