@phala/dstack-sdk
Version:
13 lines (11 loc) • 392 B
TypeScript
interface EnvVar {
key: string;
value: string;
}
/**
* ECIES-encrypt a set of environment variables against a recipient's x25519
* public key. Works on Node 18+ and modern browsers — uses `globalThis.crypto`
* (Web Crypto API) and @noble/curves.
*/
declare function encryptEnvVars(envs: EnvVar[], publicKeyHex: string): Promise<string>;
export { type EnvVar, encryptEnvVars };