UNPKG

@valora/viem-account-hsm-gcp

Version:

[![GitHub License](https://img.shields.io/github/license/valora-inc/viem-account-hsm-gcp?color=blue)](https://github.com/valora-inc/viem-account-hsm-gcp/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/@valora/viem-account-hsm-gcp.svg)](htt

8 lines (7 loc) 346 B
import { KeyManagementServiceClient } from '@google-cloud/kms'; import { LocalAccount } from 'viem/accounts'; export type GcpHsmAccount = LocalAccount<'gcpHsm'>; export declare function gcpHsmToAccount({ hsmKeyVersion, kmsClient: kmsClient_, }: { hsmKeyVersion: string; kmsClient?: KeyManagementServiceClient; }): Promise<GcpHsmAccount>;