Modified Pointcheval-Sanders signature parameters used in Coconut.

Implements

Constructors

Properties

label?: Uint8Array
value: PSSigParams

Methods

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

    Parameters

    • newMsgCount: number

    Returns this

  • 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

  • Produces a commitment for the given message using supplied blinding.

    Parameters

    • message: Uint8Array
    • blinding: Uint8Array
    • h: Uint8Array

    Returns Uint8Array

  • Produces a multi message commitment for the given message using supplied blinding.

    Parameters

    • messages: Uint8Array[]
    • h: Uint8Array[]

      (from params)

    • blinding: Uint8Array

    Returns Uint8Array

  • Parameters

    • numMessages: number
    • Optionallabel: Uint8Array

    Returns Uint8Array

  • Parameters

    • bytes: Uint8Array

    Returns PSSigParams