UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

27 lines (26 loc) • 963 B
import { KmsJwkPrivate, KmsJwkPublicFromKmsJwkPrivate } from "../jwk/knownJwk.mjs"; import { z } from "zod"; //#region src/modules/kms/options/KmsImportKeyOptions.d.ts interface KmsImportKeyOptions<Jwk extends KmsJwkPrivate> { /** * The private jwk to import. If the key needs to use a specific keyId, make sure to set * the `kid` property on the JWK. If no kid is provided a key id will be generated. */ privateJwk: Jwk; } interface KmsImportKeyReturn<Jwk extends KmsJwkPrivate> { keyId: string; /** * The public JWK representation of the imported key. `kid` will always * be defined. * * In case of a symmetric (oct) key this won't include any key material, but * will include additional JWK claims such as `use`, `kty`, and `kid` */ publicJwk: KmsJwkPublicFromKmsJwkPrivate<Jwk> & { kid: string; }; } //#endregion export { KmsImportKeyOptions, KmsImportKeyReturn }; //# sourceMappingURL=KmsImportKeyOptions.d.mts.map