HomePhabricator
Diffusion Comm 7c81d7e5dcda

[native] Add Olm account sign function to commCoreModule

Description

[native] Add Olm account sign function to commCoreModule

Summary: This exposes the function to sign messages with Olm account to JS. This is a counterpart of Account.sign() on web/keyserver.

Test Plan:
Used online Ed25519 tool to verify generated values:

await commCoreModule.initializeCryptoAccount();
// used primaryIdentityPublicKeys.ed25519
const keys = await commCoreModule.getUserPublicKey();
const message = JSON.stringify({ hello: 'world '});
const signature = await commCoreModule.signMessage(message);
console.log({ keys, message, signature });

Reviewers: marcin, kamil

Reviewed By: marcin, kamil

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Feb 12 2024, 6:11 AM
Reviewer
marcin
Differential Revision
D11037: [native] Add Olm account sign function to commCoreModule
Parents
rCOMM4da14d122e4e: [commtest] update Cargo.lock
Branches
Unknown
Tags
Unknown