import { BbsSigParams } from 'crypto-wasm-new'; import { ISignatureParams, MessageStructure } from '../types'; /** * `BBS` signature parameters. */ export declare class BBSSignatureParams implements ISignatureParams { label?: Uint8Array; value: BbsSigParams; constructor(params: BbsSigParams, label?: Uint8Array); static generate(numMessages: number, label?: Uint8Array): BBSSignatureParams; static generateAsBytes(numMessages: number, label?: Uint8Array): Uint8Array; /** * Commit to given messages and return the commitment * @param messageToCommit * @param encodeMessages */ commitToMessages(messageToCommit: Map, encodeMessages: boolean): Uint8Array; commitToMessagesConstantTime(messageToCommit: Map, encodeMessages: boolean): Uint8Array; toBytes(): Uint8Array; isValid(): boolean; static valueFromBytes(bytes: Uint8Array): BbsSigParams; /** * Transform current signature params to sign a different number of messages. Needs the `label` field to be present * @param newMsgCount */ adapt(newMsgCount: number): this; /** * Gives `BBSSignatureParams` that can sign `msgCount` number of messages. * @param msgCount * @param labelOrParams */ static getSigParamsOfRequiredSize(msgCount: number, labelOrParams: Uint8Array | BBSSignatureParams): BBSSignatureParams; /** * Number of messages that these params support and can be signed. If less or more messages are to be signed, use * `adapt` */ supportedMessageCount(): number; /** * Is message index valid as per the params * @param index */ isValidIndex(index: number): boolean; /** * Get params, i.e. generator from `this.value.h` for certain indices * @param indices */ getParamsForIndices(indices: number[]): Uint8Array[]; static getSigParamsForMsgStructure(msgStructure: MessageStructure, labelOrParams: Uint8Array | BBSSignatureParams): BBSSignatureParams; toJSON(): string; } //# sourceMappingURL=params.d.ts.map