@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
32 lines • 1.27 kB
text/typescript
import { KnownJwaSignatureAlgorithm } from "../../jwa.mjs";
import { KmsJwkPublicEc } from "./ecJwk.mjs";
import { PublicJwkType } from "../PublicJwk.mjs";
//#region src/modules/kms/jwk/kty/ec/P256PublicJwk.d.ts
type Jwk = KmsJwkPublicEc & {
crv: 'P-256';
};
export declare class P256PublicJwk implements PublicJwkType<Jwk> {
readonly jwk: Jwk;
static supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[];
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
static multicodecPrefix: number;
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "Ed25519" | "ES256K")[];
multicodecPrefix: number;
constructor(jwk: Jwk);
get publicKey(): {
crv: "P-256";
kty: "EC";
publicKey: Uint8Array<ArrayBufferLike>;
};
get compressedPublicKey(): {
crv: "P-256";
kty: "EC";
publicKey: Uint8Array<ArrayBufferLike>;
};
get multicodec(): Uint8Array<ArrayBufferLike>;
static fromPublicKey(publicKey: Uint8Array): P256PublicJwk;
static fromMulticodec(multicodec: Uint8Array): P256PublicJwk;
}
//#endregion
//# sourceMappingURL=P256PublicJwk.d.mts.map