HomePhabricator
Diffusion Comm 6861908ded02

[lib] Add function to ed25519 verify message to OlmAPI

Description

[lib] Add function to ed25519 verify message to OlmAPI

Summary:
Exposed function from D11905 via OlmAPI and made it return boolean instead of try-catch based approach.

Depends on D11905

Test Plan:

const { olmAPI } = getConfig();
const pubKey = await getContentSigningKey();
const signature = await olmAPI.signMessage('hello');
const isValid = await olmAPI.verifyMessage('hello', signature, pubKey);
console.log(isValid ? 'valid' : 'invalid');

on both native and web

Reviewers: kamil, marcin

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11907

Details

Provenance
bartekAuthored on May 6 2024, 7:11 AM
Reviewer
kamil
Differential Revision
D11907: [lib] Add function to ed25519 verify message to OlmAPI
Parents
rCOMM3f690be08196: [native] Expose verifySignature function via JSI
Branches
Unknown
Tags
Unknown