import { VerifyResult } from 'crypto-wasm-new'; import { AccumulatorSecretKey } from '../accumulator'; import { BBDT16MacSecretKey } from '../bbdt16-mac'; import { BBDT16KeyedProof, KBUniAccumMembershipKeyedProof, KBUniAccumNonMembershipKeyedProof, VBAccumMembershipKeyedProof } from '../keyed-proofs'; import { ID_STR, REV_CHECK_STR, RevocationStatusProtocol, SignatureType, TYPE_STR } from './types-and-consts'; import { Versioned } from './versioned'; export interface IKeyedCredentialProof { sigType: SignatureType; proof: BBDT16KeyedProof; } export interface IKeyedCredentialStatusProof { [ID_STR]: string; [TYPE_STR]: RevocationStatusProtocol; [REV_CHECK_STR]: string; proof: VBAccumMembershipKeyedProof | KBUniAccumMembershipKeyedProof | KBUniAccumNonMembershipKeyedProof; } /** * Keyed proof for a KVAC. It can contain proof for either the credential or the status or both. A keyed proof * is (usually) part of a larger proof and validating it requires the knowledge of secret key. */ export declare class KeyedProof extends Versioned { static VERSION: string; readonly credential?: IKeyedCredentialProof; readonly status?: IKeyedCredentialStatusProof; constructor(credential?: IKeyedCredentialProof, status?: IKeyedCredentialStatusProof); verify(credentialSecretKey?: BBDT16MacSecretKey, accumSecretKey?: AccumulatorSecretKey): VerifyResult; toJSON(): object; static fromJSON(j: object): KeyedProof; } //# sourceMappingURL=keyed-proof.d.ts.map