blob: 8a413caf8bf86e8884430a7eb7fd53b25a40ab0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
const {
CryptographyKey,
Ed25519PublicKey,
Ed25519SecretKey,
SodiumError,
SodiumPlus,
SodiumPolyfill,
SodiumUtil,
X25519PublicKey,
X25519SecretKey
} = require('./index');
// Load dependencies into window
(async function(){
window.CryptographyKey = CryptographyKey;
window.Ed25519PublicKey = Ed25519PublicKey;
window.Ed25519SecretKey = Ed25519SecretKey;
window.SodiumError = SodiumError;
window.SodiumPlus = SodiumPlus;
window.SodiumPolyfill = SodiumPolyfill;
window.SodiumUtil = SodiumUtil;
window.X25519PublicKey = X25519PublicKey;
window.X25519SecretKey = X25519SecretKey;
window.sodium = await SodiumPlus.auto();
})();
|