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

20 lines • 825 B
import { KmsJwkPublicEc } from "./ecJwk.mjs"; //#region src/modules/kms/jwk/kty/ec/ecSignature.d.ts /** * Converts a RAW EC signature to DER format * * @param rawSignature - Raw signature as r || s concatenated values * @param crv - The EC crv of the key used for the signature * @returns DER encoded signature */ export declare function rawEcSignatureToDer(rawSignature: Uint8Array, crv: KmsJwkPublicEc['crv']): Uint8Array; /** * Converts a DER encoded EC signature to RAW format * * @param derSignature - DER encoded signature * @param crv - The EC crv of the key used for the signature * @returns Raw signature as r || s concatenated values */ export declare function derEcSignatureToRaw(derSignature: Uint8Array, crv: KmsJwkPublicEc['crv']): Uint8Array; //#endregion //# sourceMappingURL=ecSignature.d.mts.map