function seal(message, publicKey) {
    var ekp = _tweetnacl.default.box.keyPair();

    var out = new Uint8Array(message.length + overheadLength);
    out.set(ekp.publicKey, 0);
    var nonce = sealNonce(ekp.publicKey, publicKey);

    var ct = _tweetnacl.default.box(message, nonce, publicKey, ekp.secretKey);

    out.set(ct, _tweetnacl.default.box.publicKeyLength);
    return out;
  } // Decrypt the ciphertext message using the secret key.
// - publicKey - recipient's public key Uint8Array.
recipient's public key Uint8Array.
recipient ' s public key Uint8Array .
function seal(message, publicKey) {
    var ekp = _tweetnacl.default.box.keyPair();
    var out = new Uint8Array(message.length + overheadLength);
    out.set(ekp.publicKey, 0);
    var nonce = sealNonce(ekp.publicKey, publicKey);
    var ct = _tweetnacl.default.box(message, nonce, publicKey, ekp.secretKey);
    out.set(ct, _tweetnacl.default.box.publicKeyLength);
    return out;
  } 
function seal ( message , publicKey ) { var ekp = _tweetnacl . default . box . keyPair ( ) ; var out = new Uint8Array ( message . length + overheadLength ) ; out . set ( ekp . publicKey , 0 ) ; var nonce = sealNonce ( ekp . publicKey , publicKey ) ; var ct = _tweetnacl . default . box ( message , nonce , publicKey , ekp . secretKey ) ; out . set ( ct , _tweetnacl . default . box . publicKeyLength ) ; return out ; }
publicKey - recipient's public key Uint8Array.
publicKey - recipient ' s public key Uint8Array .
// Decrypt the ciphertext message using the secret key.