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

34 lines (33 loc) • 1.33 kB
import { KnownJwaSignatureAlgorithm } from "../../jwa.mjs"; import { KmsJwkPublicEc } from "./ecJwk.mjs"; import { PublicJwkType } from "../PublicJwk.mjs"; //#region src/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.ts type Jwk = KmsJwkPublicEc & { crv: 'secp256k1'; }; declare class Secp256k1PublicJwk 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: "secp256k1"; kty: "EC"; publicKey: Uint8Array<ArrayBufferLike>; }; get compressedPublicKey(): { crv: "secp256k1"; kty: "EC"; publicKey: Uint8Array<ArrayBufferLike>; }; get multicodec(): Uint8Array<ArrayBufferLike>; static fromPublicKey(publicKey: Uint8Array): Secp256k1PublicJwk; static fromMulticodec(multicodec: Uint8Array): Secp256k1PublicJwk; } //#endregion export { Secp256k1PublicJwk }; //# sourceMappingURL=Secp256k1PublicJwk.d.mts.map