@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
22 lines (21 loc) • 865 B
text/typescript
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
*/
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
*/
declare function derEcSignatureToRaw(derSignature: Uint8Array, crv: KmsJwkPublicEc['crv']): Uint8Array;
//#endregion
export { derEcSignatureToRaw, rawEcSignatureToDer };
//# sourceMappingURL=ecSignature.d.mts.map