MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / checkArrayTypes

Function checkArrayTypes

vmm/src/x25519.js:1508–1514  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

1506 }
1507 /* High-level API */
1508 function checkArrayTypes(...args) {
1509 var t, i;
1510 for (i = 0; i < arguments.length; i++) {
1511 if ((t = Object.prototype.toString.call(arguments[i])) !== '[object Uint8Array]')
1512 throw new TypeError('unexpected type ' + t + ', use Uint8Array');
1513 }
1514 }
1515 /**
1516 * Returns a raw shared key between own private key and peer's public key (in other words, this is an ECC Diffie-Hellman function X25519, performing scalar multiplication).
1517 *

Callers 6

sharedKeyFunction · 0.70
signMessageFunction · 0.70
openMessageFunction · 0.70
signFunction · 0.70
verifyFunction · 0.70
generateKeyPairFunction · 0.70

Calls 1

callMethod · 0.45

Tested by

no test coverage detected