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

Method asUint8Array

sdk/js/src/index.ts:474–474  ·  view source on GitHub ↗
(length?: number)

Source from the content-addressed store, hash-verified

472 const payload = JSON.stringify(raw)
473 const result = await send_rpc_request<GetTlsKeyResponse>(this.endpoint, '/prpc/Tappd.DeriveKey', payload)
474 const asUint8Array = (length?: number) => x509key_to_uint8array(result.key, length)
475 return Object.freeze({
476 ...result,
477 asUint8Array,

Callers 5

toViemAccountFunction · 0.45
toViemAccountSecureFunction · 0.45
toKeypairFunction · 0.45
toKeypairSecureFunction · 0.45
index.test.tsFile · 0.45

Calls 1

x509key_to_uint8arrayFunction · 0.85

Tested by

no test coverage detected