@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
29 lines (28 loc) • 798 B
text/typescript
import { PublicJwk } from "../modules/kms/jwk/PublicJwk.mjs";
import "../modules/kms/index.mjs";
//#region src/crypto/JwsSigner.d.ts
interface JwsSignerDid {
method: 'did';
didUrl: string;
}
interface JwsSignerX5c {
method: 'x5c';
/**
*
* Array of base64-encoded certificate strings in the DER-format.
*
* The certificate containing the public key corresponding to the key used to digitally sign the JWS MUST be the first certificate.
*/
x5c: string[];
}
interface JwsSignerJwk {
method: 'jwk';
jwk: PublicJwk;
}
type JwsSigner = JwsSignerDid | JwsSignerX5c | JwsSignerJwk;
type JwsSignerWithJwk = JwsSigner & {
jwk: PublicJwk;
};
//#endregion
export { JwsSigner, JwsSignerDid, JwsSignerJwk, JwsSignerWithJwk, JwsSignerX5c };
//# sourceMappingURL=JwsSigner.d.mts.map