@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
31 lines • 1.26 kB
text/typescript
import { KnownJwaSignatureAlgorithm } from "../../jwa.mjs";
import { KmsJwkPublicOkp } from "./okpJwk.mjs";
import { PublicJwkType } from "../PublicJwk.mjs";
//#region src/modules/kms/jwk/kty/okp/X25519PublicJwk.d.ts
type Jwk = KmsJwkPublicOkp & {
crv: 'X25519';
};
export declare class X25519PublicJwk implements PublicJwkType<Jwk> {
readonly jwk: Jwk;
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-HSALSA20"[];
static supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[];
static multicodecPrefix: number;
supportedEncryptionKeyAgreementAlgorithms: "ECDH-HSALSA20"[];
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "Ed25519" | "ES256K")[];
multicodecPrefix: number;
constructor(jwk: Jwk);
get publicKey(): {
crv: "X25519";
kty: "OKP";
publicKey: Uint8Array<ArrayBufferLike>;
};
/**
* Not supported for X25519
*/
get compressedPublicKey(): null;
get multicodec(): Uint8Array<ArrayBufferLike>;
static fromPublicKey(publicKey: Uint8Array): X25519PublicJwk;
static fromMulticodec(multicodec: Uint8Array): X25519PublicJwk;
}
//#endregion
//# sourceMappingURL=X25519PublicJwk.d.mts.map