mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
9 lines
289 B
TypeScript
9 lines
289 B
TypeScript
import * as wrappers from 'libsodium-wrappers-sumo';
|
|
|
|
export async function getSodiumNode() {
|
|
// don't ask me why, but when called from node we have to do this as the types are incorrect?!
|
|
const anyWrappers = wrappers as any;
|
|
await anyWrappers.ready;
|
|
return anyWrappers.default;
|
|
}
|