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

    Class Signature<C>

    A Schnorr signature over some prime order group (or subgroup).

    Type Parameters

    Index

    Constructors

    • Create a new Signature.

      Type Parameters

      Parameters

      • R: Element<C>

        The commitment to the signature nonce

      • z: Scalar<C>

        The response to the challenge

      Returns Signature<C>

    Properties

    R: Element<C>

    The commitment R to the signature nonce.

    z: Scalar<C>

    The response z to the challenge computed from the commitment R, the verifying key, and the message.

    Methods

    • Get the commitment R to the signature nonce.

      Returns Element<C>

      The R component of the signature

    • Get the response z to the challenge.

      Returns Scalar<C>

      The z component of the signature

    • Internal

      Converts default-encoded bytes into a Signature.

      The default encoding is the serialized R point followed by the serialized z scalar.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use for deserialization

      • bytes: Uint8Array

        The serialized signature bytes

      Returns Signature<C>

      The deserialized Signature

      If the signature encoding is malformed

    • Converts bytes into a Signature using the ciphersuite's deserialization method.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use for deserialization

      • bytes: Uint8Array

        The serialized signature bytes

      Returns Signature<C>

      The deserialized Signature

      If the signature encoding is malformed

    • Internal

      Converts this signature to its default byte serialization.

      The default encoding is the serialized R point followed by the serialized z scalar.

      Parameters

      • ciphersuite: C

        The ciphersuite to use for serialization

      Returns Uint8Array

      The serialized signature as bytes

      If serialization fails (e.g., R is the identity)

    • Converts this signature to its byte serialization using the ciphersuite's method.

      Parameters

      • ciphersuite: C

        The ciphersuite to use for serialization

      Returns Uint8Array

      The serialized signature as bytes

      If serialization fails

    • Check equality with another Signature.

      Parameters

      • ciphersuite: C

        The ciphersuite to use for comparison

      • other: Signature<C>

        The other Signature to compare with

      Returns boolean

      True if the signatures are equal

    • Clone this Signature.

      Returns Signature<C>

      A new Signature with the same R and z values

    • Convert to a debug string representation.

      Parameters

      • ciphersuite: C

        The ciphersuite to use for serialization

      Returns string

      A debug string showing R and z as hex