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

    Class SigningNonces<C>

    Comprised of hiding and binding nonces.

    Note that SigningNonces must be used only once for a signing operation; re-using nonces will result in leakage of a signer's long-lived signing key.

    Type Parameters

    Index

    Properties

    hiding: Nonce<C>

    The hiding Nonce

    binding: Nonce<C>

    The binding Nonce

    commitments: SigningCommitments<C>

    The commitments to the nonces. This is precomputed to improve sign() performance, since it needs to check if the commitments to the participant's nonces are included in the commitments sent by the Coordinator, and this prevents having to recompute them.

    ciphersuite: C

    The ciphersuite instance

    Methods

    • Generates a new signing nonce.

      Each participant generates signing nonces before performing a signing operation.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • secret: SigningShare<C>

        The participant's signing share

      • rng: RandomSource

        A cryptographically secure random number generator

      Returns SigningNonces<C>

      New signing nonces

    • Generates a new SigningNonces from a pair of Nonces.

      Security

      SigningNonces MUST NOT be repeated in different FROST signings. Thus, if you're using this method (because e.g. you're writing it to disk between rounds), be careful so that does not happen.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • hiding: Nonce<C>

        The hiding nonce

      • binding: Nonce<C>

        The binding nonce

      Returns SigningNonces<C>

      New signing nonces

    • Zeroize the nonces by overwriting with zeros.

      This should be called when the nonces are no longer needed to prevent secret data from remaining in memory.

      Returns void

    • Returns a string representation of this SigningNonces (redacted for security).

      Returns string

    • Check equality with another SigningNonces.

      Parameters

      Returns boolean

      true if the nonces are equal

    • Clone this SigningNonces.

      Security

      SigningNonces MUST NOT be repeated in different FROST signings. Be careful when using this method.

      Returns SigningNonces<C>

      A new SigningNonces with the same values

    • Serialize the SigningNonces to bytes.

      Returns Uint8Array

      The serialized bytes (hiding nonce || binding nonce)

    • Deserialize SigningNonces from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • bytes: Uint8Array

        The serialized bytes

      Returns SigningNonces<C>

      The deserialized SigningNonces