import { CredentialBuilderCommon } from './credential-builder-common'; import { IBlindCredentialRequest } from './presentation-specification'; import { BBSSecretKey, BBSSignatureParams } from '../bbs'; import { BBSPlusSecretKey, BBSPlusSignatureParamsG1 } from '../bbs-plus'; import { BBSBlindedCredential, BBSPlusBlindedCredential, BBDT16BlindedCredential } from './blinded-credential'; import { BBDT16MacParams, BBDT16MacSecretKey } from '../bbdt16-mac'; /** * Used by the signer to create a blinded credential. The signer will know only the unblinded attributes */ export declare abstract class BlindedCredentialBuilder extends CredentialBuilderCommon { /** NOTE: This should match `CredentialBuilder.VERSION` exactly else backward compatibility code won't always work. This is because `BlindedCredential.toCredential` outputs a `Credential` which should be same as the one output by `CredentialBuilder.sign` */ static VERSION: string; blindedCredReq: IBlindCredentialRequest; constructor(blindedCredReq: IBlindCredentialRequest); protected getTotalAttributesAndEncodedKnownAttributes(): [number, Map]; protected processUnBlindedAttributes(): void; } export declare class BBSBlindedCredentialBuilder extends BlindedCredentialBuilder { protected applyDefaultProofMetadataIfNeeded(s: object): void; /** * Blind sign a credential * @param secretKey * @param sigParams * @returns */ sign(secretKey: BBSSecretKey, sigParams?: Uint8Array | BBSSignatureParams): BBSBlindedCredential; } export declare class BBSPlusBlindedCredentialBuilder extends BlindedCredentialBuilder { protected applyDefaultProofMetadataIfNeeded(s: object): void; /** * Blind sign a credential * @param secretKey * @param sigParams * @returns */ sign(secretKey: BBSPlusSecretKey, sigParams?: Uint8Array | BBSPlusSignatureParamsG1): BBSPlusBlindedCredential; } export declare class BBDT16BlindedCredentialBuilder extends BlindedCredentialBuilder { protected applyDefaultProofMetadataIfNeeded(s: object): void; /** * Blind sign a credential * @param secretKey * @param sigParams * @returns */ sign(secretKey: BBDT16MacSecretKey, sigParams?: Uint8Array | BBDT16MacParams): BBDT16BlindedCredential; } //# sourceMappingURL=blinded-credential-builder.d.ts.map