Private data known only to the prover whose knowledge is being proved in a proof.

Constructors

Methods

  • Parameters

    • attributes: Uint8Array[]
    • OptionalsecretKey: Uint8Array

    Returns Uint8Array

  • Parameters

    • mac: BBDT16Mac
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Parameters

    • mac: BBDT16Mac
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Signature and messages of BBS+ signature

    Parameters

    • signature: BBSPlusSignatureG1
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Signature and messages of BBS+ signature

    Parameters

    • signature: BBSPlusSignatureG1
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Signature and messages of BBS signature

    Parameters

    • signature: BBSSignature
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Signature and messages of BBS signature

    Parameters

    • signature: BBSSignature
    • unrevealedMessages: Map<number, Uint8Array>
    • encodeMessages: boolean

    Returns Uint8Array

  • Witness for bound check using Bulletproofs++

    Parameters

    • message: Uint8Array

      Message whose bounds are being proven using Bulletproofs++

    Returns Uint8Array

  • Witness for bound check using LegoGroth16

    Parameters

    • message: Uint8Array

      Message whose bounds are being proven using LegoGroth16

    Returns Uint8Array

  • Witness for bound check using set-membership

    Parameters

    • message: Uint8Array

      Message whose bounds are being proven using set-membership check

    Returns Uint8Array

  • Witness for bound check using set-membership and keyed verification

    Parameters

    • message: Uint8Array

      Message whose bounds are being proven using set-membership check

    Returns Uint8Array

  • Opening of the Pedersen commitment

    Parameters

    • elements: Uint8Array[]

    Returns Uint8Array

  • Signature and messages of PS signature

    Parameters

    • signature: PSSignature
    • unrevealedMessages: Map<number, Uint8Array>

    Returns Uint8Array

  • Signature and messages of PS signature

    Parameters

    • signature: PSSignature
    • unrevealedMessages: Map<number, Uint8Array>

    Returns Uint8Array

  • Witness for verifiable encryption using SAVER

    Parameters

    • message: Uint8Array

      Message being encrypted

    Returns Uint8Array