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

Method asUint8Array

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

Source from the content-addressed store, hash-verified

249 const payload = JSON.stringify(raw)
250 const result = await send_rpc_request<GetTlsKeyResponse>(this.endpoint, '/GetTlsKey', payload)
251 const asUint8Array = (length?: number) => x509key_to_uint8array(result.key, length)
252 return Object.freeze({
253 ...result,
254 asUint8Array,

Callers

nothing calls this directly

Calls 1

x509key_to_uint8arrayFunction · 0.85

Tested by

no test coverage detected