aboutsummaryrefslogblamecommitdiffstats
path: root/library/sodium-plus/browser.js
blob: 8a413caf8bf86e8884430a7eb7fd53b25a40ab0f (plain) (tree)
























                                               
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();
})();