BBS signature parameters.

Implements

Constructors

Properties

label?: Uint8Array
value: BbsSigParams

Methods

  • Transform current signature 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 commitment

    Parameters

    • messageToCommit: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Parameters

    • messageToCommit: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Get params, i.e. generator from this.value.h for certain indices

    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 BbsSigParams