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

1 lines • 961 B
{"version":3,"file":"KmsSignOptions.mjs","names":["z"],"sources":["../../../../src/modules/kms/options/KmsSignOptions.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnyUint8Array } from '../../../utils/zod'\nimport { zKnownJwaSignatureAlgorithm } from '../jwk/jwa'\nimport { zKmsKeyId } from './common'\n\nexport const zKmsSignOptions = z.object({\n /**\n * The key to use for signing\n */\n keyId: zKmsKeyId,\n\n /**\n * The JWA signature algorithm to use for signing\n */\n algorithm: zKnownJwaSignatureAlgorithm.describe('The JWA signature algorithm to use for signing'),\n\n /**\n * The data to sign\n */\n data: zAnyUint8Array.describe('The data to sign'),\n})\n\nexport type KmsSignOptions = z.output<typeof zKmsSignOptions>\nexport interface KmsSignReturn {\n signature: Uint8Array\n}\n"],"mappings":";;;;;AAKA,MAAa,kBAAkBA,IAAE,OAAO;;;;CAItC,OAAO;;;;CAKP,WAAW,4BAA4B,SAAS,gDAAgD;;;;CAKhG,MAAM,eAAe,SAAS,kBAAkB;AAClD,CAAC"}