Skip to content

Commit b724d6a

Browse files
sinui0heeckhau
authored andcommitted
feat(wasm): expose presentation verifying key
1 parent dfc1629 commit b724d6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/wasm/src/types.rs

+5
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ pub struct Presentation(tlsn_core::presentation::Presentation);
243243

244244
#[wasm_bindgen]
245245
impl Presentation {
246+
/// Returns the verifying key.
247+
pub fn verifying_key(&self) -> VerifyingKey {
248+
self.0.verifying_key().into()
249+
}
250+
246251
/// Verifies the presentation.
247252
pub fn verify(&self) -> Result<PresentationOutput, JsError> {
248253
let provider = CryptoProvider::default();

0 commit comments

Comments
 (0)