import { BBSPlusBlindSignatureG1 } from '../bbs-plus'; import { BBSBlindSignature } from '../bbs'; import { BBSCredential, BBSPlusCredential, BBDT16Credential } from './credential'; import { BBSPlusBlinding, BBDT16Blinding } from './blinded-credential-request-builder'; import { CredentialCommon } from './credential-common'; import { BBDT16BlindMac } from '../bbdt16-mac'; /** * A blinded credential created by the signer. Has to be converted to a (unblinded) credential */ export declare abstract class BlindedCredential extends CredentialCommon { /** * Merge blinded and unblinded subject to create the subject of the final credential * @param blindedSubject * @returns */ protected getUpdatedSubject(blindedSubject: object | object[]): object | object[]; protected getUpdatedStatus(blindedStatus?: object): object | undefined; protected getUpdatedAttributes(proofType: string, blindedSubject: object | object[], blindedStatus?: object, blindedTopLevelFields?: Map): [object | object[], object | undefined, Map]; protected static validateProofType(typ: string): void; /** * Change the proof type from "blinded" to "unblinded" * @param newProofType * @protected */ protected updateProofType(newProofType: any): Map; } export declare class BBSBlindedCredential extends BlindedCredential { /** * Convert to unblinded credential which can be verified with the public key * @param blindedSubject * @param blindedStatus * @param blindedTopLevelFields - Any top level fields that are blinded. Ensure that these are not set by the issuer. * @returns */ toCredential(blindedSubject: object | object[], blindedStatus?: object, blindedTopLevelFields?: Map): BBSCredential; static fromJSON(j: object, proofValue?: string): BBSBlindedCredential; static applyDefaultProofMetadataIfNeeded(s: object): void; } export declare class BBSPlusBlindedCredential extends BlindedCredential { /** * Convert to unblinded credential which can be verified with the public key * @param blindedSubject * @param blinding - blinding used while creating the request * @param blindedStatus * @param blindedTopLevelFields - Any top level fields that are blinded. Ensure that these are not set by the issuer. * @returns */ toCredential(blindedSubject: object | object[], blinding: BBSPlusBlinding, blindedStatus?: object, blindedTopLevelFields?: Map): BBSPlusCredential; static fromJSON(j: object, proofValue?: string): BBSPlusBlindedCredential; static applyDefaultProofMetadataIfNeeded(s: object): void; } export declare class BBDT16BlindedCredential extends BlindedCredential { /** * Convert to unblinded credential which can be verified with the secret key * @param blindedSubject * @param blinding - blinding used while creating the request * @param blindedStatus * @param blindedTopLevelFields - Any top level fields that are blinded. Ensure that these are not set by the issuer. * @returns */ toCredential(blindedSubject: object | object[], blinding: BBDT16Blinding, blindedStatus?: object, blindedTopLevelFields?: Map): BBDT16Credential; static fromJSON(j: object, proofValue?: string): BBDT16BlindedCredential; static applyDefaultProofMetadataIfNeeded(s: object): void; } //# sourceMappingURL=blinded-credential.d.ts.map