UNPKG

@phala/dstack-sdk

Version:

dstack SDK

13 lines 679 B
import { type GetKeyResponse, type GetTlsKeyResponse } from './index'; import { Keypair } from '@solana/web3.js'; /** * @deprecated use toKeypairSecure instead. This method has security concerns. * Current implementation uses raw key material without proper hashing. */ export declare function toKeypair(keyResponse: GetTlsKeyResponse | GetKeyResponse): Keypair; /** * Creates a Solana Keypair from DeriveKeyResponse using secure key derivation. * This method applies SHA256 hashing to the complete key material for enhanced security. */ export declare function toKeypairSecure(keyResponse: GetTlsKeyResponse | GetKeyResponse): Keypair; //# sourceMappingURL=solana.d.ts.map