BBDT16 MAC parameters.

Implements

Constructors

Properties

label?: Uint8Array
value: Bddt16MacParams

Methods

  • Transform current MAC params to sign a different number of messages. Needs the label field to be present

    Parameters

    • newMsgCount: number

    Returns this

  • Commit to given messages and return the pair [blinding, commitment]

    Parameters

    • messageToCommit: Map<number, Uint8Array>
    • encodeMessages: boolean
    • blinding: Uint8Array = ...

      If not provided, a random blinding is generated

    Returns [Uint8Array, Uint8Array]

  • Commit to given messages and return the pair [blinding, commitment]

    Parameters

    • messageToCommit: Map<number, Uint8Array>
    • encodeMessages: boolean
    • blinding: Uint8Array = ...

      If not provided, a random blinding is generated

    Returns [Uint8Array, Uint8Array]

  • Parameters

    • indices: number[]

    Returns Uint8Array[]

  • Is message index valid as per the params

    Parameters

    • index: number

    Returns boolean

  • Parameters

    • numMessages: number
    • Optionallabel: Uint8Array

    Returns Uint8Array

  • Parameters

    • bytes: Uint8Array

    Returns Bddt16MacParams