import { ISignatureParams, MessageStructure } from '../types'; import { Bddt16MacParams } from 'crypto-wasm-new'; /** * BBDT16 MAC parameters. */ export declare class BBDT16MacParams implements ISignatureParams { label?: Uint8Array; value: Bddt16MacParams; constructor(params: Bddt16MacParams, label?: Uint8Array); /** * 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; getParamsForIndices(indices: number[]): Uint8Array[]; static generate(numMessages: number, label?: Uint8Array): BBDT16MacParams; static generateAsBytes(numMessages: number, label?: Uint8Array): Uint8Array; toBytes(): Uint8Array; isValid(): boolean; static valueFromBytes(bytes: Uint8Array): Bddt16MacParams; /** * Transform current MAC params to sign a different number of messages. Needs the `label` field to be present * @param newMsgCount */ adapt(newMsgCount: number): this; /** * Commit to given messages and return the pair [blinding, commitment] * @param messageToCommit * @param encodeMessages * @param blinding - If not provided, a random blinding is generated */ commitToMessages(messageToCommit: Map, encodeMessages: boolean, blinding?: Uint8Array): [Uint8Array, Uint8Array]; /** * Commit to given messages and return the pair [blinding, commitment] * @param messageToCommit * @param encodeMessages * @param blinding - If not provided, a random blinding is generated */ commitToMessagesConstantTime(messageToCommit: Map, encodeMessages: boolean, blinding?: Uint8Array): [Uint8Array, Uint8Array]; /** * Gives `BBDT16MacParams` that can sign `msgCount` number of messages. * @param msgCount * @param labelOrParams */ static getMacParamsOfRequiredSize(msgCount: number, labelOrParams: Uint8Array | BBDT16MacParams): BBDT16MacParams; static getMacParamsForMsgStructure(msgStructure: MessageStructure, labelOrParams: Uint8Array | BBDT16MacParams): BBDT16MacParams; toJSON(): string; } //# sourceMappingURL=params.d.ts.map