FROST ristretto255 TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Class NonceCommitment<C>

    A group element that is a commitment to a signing nonce share.

    NonceCommitments are the public counterparts to Nonces and can be safely shared with other participants and the coordinator.

    Type Parameters

    Index

    Methods

    • Internal

      Create a new NonceCommitment from an Element.

      Type Parameters

      Parameters

      • ciphersuite: C
      • element: C["Element"]

      Returns NonceCommitment<C>

    • Internal

      Get the inner Element of the NonceCommitment.

      Returns C["Element"]

    • Create a NonceCommitment from a Nonce.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • nonce: Nonce<C>

        The nonce to create a commitment from

      Returns NonceCommitment<C>

      The commitment to the nonce

    • Deserialize a NonceCommitment from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • bytes: Uint8Array

        The serialized commitment bytes

      Returns NonceCommitment<C>

      The deserialized commitment

      Error if deserialization fails

    • Serialize the NonceCommitment to bytes.

      Returns Uint8Array

      The serialized commitment bytes

      Error if the element is the identity

    • Check equality with another NonceCommitment.

      Parameters

      Returns boolean

      true if the commitments are equal

    • Returns a string representation of this NonceCommitment.

      Returns string