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

Function checkArrayTypes

vmm/ui/src/lib/x25519.js:1507–1513  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

1505 }
1506 /* High-level API */
1507 function checkArrayTypes(...args) {
1508 var t, i;
1509 for (i = 0; i < arguments.length; i++) {
1510 if ((t = Object.prototype.toString.call(arguments[i])) !== '[object Uint8Array]')
1511 throw new TypeError('unexpected type ' + t + ', use Uint8Array');
1512 }
1513 }
1514 /**
1515 * 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).
1516 *

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