Page MenuHomePhabricator

[lib] Add function to ed25519 verify message to OlmAPI
ClosedPublic

Authored by bartek on Mon, May 6, 7:21 AM.
Tags
None
Referenced Files
F1785316: D11907.id40047.diff
Sat, May 18, 2:41 PM
Unknown Object (File)
Sat, May 18, 5:54 AM
Unknown Object (File)
Fri, May 17, 7:42 PM
Unknown Object (File)
Fri, May 17, 6:33 PM
Unknown Object (File)
Wed, May 15, 2:37 PM
Unknown Object (File)
Wed, May 15, 1:17 PM
Unknown Object (File)
Tue, May 14, 1:15 PM
Unknown Object (File)
Tue, May 14, 12:12 PM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable