From b724d6a1d2705b682c4c71e1d81ce7bde92b055d Mon Sep 17 00:00:00 2001 From: sinu <65924192+sinui0@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:31:56 -0700 Subject: [PATCH] feat(wasm): expose presentation verifying key --- crates/wasm/src/types.rs | 5 +++++ 1 file changed, 5 insertions(+) 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();