Constructors

  • Initializes the class attributes based on the strategy passed as parameter.

    Parameters

    • Optional identityOrMessage: string

      Additional data needed to create identity for given strategy.

    Returns IdentityV3

Properties

_commitment: any
_nullifier: any
_secret: any
_trapdoor: any

Accessors

  • get commitment(): bigint
  • Returns the identity commitment.

    Returns bigint

    The identity commitment.

  • get nullifier(): bigint
  • Returns the identity nullifier.

    Returns bigint

    The identity nullifier.

  • get secret(): bigint
  • Returns the identity secret.

    Returns bigint

    The identity secret.

  • get trapdoor(): bigint
  • Returns the identity trapdoor.

    Returns bigint

    The identity trapdoor.

Methods

  • Returns the identity commitment.

    Returns bigint

    The identity commitment.

  • Returns the identity nullifier.

    Returns bigint

    The identity nullifier.

  • Returns the identity secret.

    Returns bigint

    The identity secret.

  • Returns the identity trapdoor.

    Returns bigint

    The identity trapdoor.

  • Returns a JSON string with trapdoor and nullifier. It can be used to export the identity and reuse it later.

    Returns string

    The string representation of the identity.

Generated using TypeDoc