UNPKG

@transmute/bbs-bls12381-signature-2020

Version:
27 lines (26 loc) 1.39 kB
import { Bls12381G2KeyPair } from "@transmute/bls12381-key-pair"; import { BbsBlsSignature2020ProofType, CreateVerifyDataOptions, VerifyProofOptions, VerifySignatureOptions } from "./types"; export declare class BbsBlsSignature2020 { static type: string; verificationMethod?: string; private key?; private date?; constructor({ key, date }?: { key?: Bls12381G2KeyPair; date?: string; }); ensureSuiteContext({ document }: any): void; matchProof({ proof }: any): Promise<boolean>; canonize(input: any, { documentLoader, expansionMap, skipExpansion }: any): Promise<any>; canonizeProof(proof: any, { documentLoader, expansionMap }: any): Promise<any>; createVerifyProofData(proof: any, { documentLoader, expansionMap }: any): Promise<string[]>; createVerifyDocumentData(document: any, { documentLoader, expansionMap }: any): Promise<string[]>; createVerifyData(options: CreateVerifyDataOptions): Promise<string[]>; createProof({ document, purpose, documentLoader, expansionMap, compactProof }: any): Promise<BbsBlsSignature2020ProofType>; getVerificationMethod({ proof, documentLoader }: any): Promise<any>; verifySignature(options: VerifySignatureOptions): Promise<boolean>; verifyProof(options: VerifyProofOptions): Promise<{ verified: boolean; error?: any; }>; }