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

35 lines • 1.11 kB
import { VerificationMethod } from "../../../dids/domain/verificationMethod/VerificationMethod.mjs"; import "../../../dids/index.mjs"; //#region src/modules/vc/linked-data-proofs/models/LdKeyPair.d.ts export interface LdKeyPairOptions { id: string; controller: string; } export declare abstract class LdKeyPair { readonly id: string; readonly controller: string; abstract type: string; constructor(options: LdKeyPairOptions); static generate(): Promise<LdKeyPair>; static from(_verificationMethod: VerificationMethod): Promise<LdKeyPair>; export(publicKey?: boolean, privateKey?: boolean): { id: string; type: string; controller: string; }; abstract fingerprint(): string; abstract verifyFingerprint(fingerprint: string): boolean; abstract signer(): { sign: (data: { data: Uint8Array | Uint8Array[]; }) => Promise<Uint8Array | Array<Uint8Array>>; }; abstract verifier(): { verify: (data: { data: Uint8Array | Uint8Array[]; signature: Uint8Array; }) => Promise<boolean>; }; } //#endregion //# sourceMappingURL=LdKeyPair.d.mts.map