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

    Class SigningShare<C>

    A secret scalar value representing a signer's share of the group secret.

    Type Parameters

    Index

    Constructors

    • Create a new SigningShare from a scalar.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • scalar: C["Scalar"]

        The scalar value

      Returns SigningShare<C>

    Methods

    • Get the inner scalar value.

      Returns C["Scalar"]

      The scalar value

    • Deserialize from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • bytes: Uint8Array

        Serialized bytes

      Returns SigningShare<C>

      The deserialized SigningShare

      If deserialization fails

    • Serialize to bytes.

      Returns Uint8Array

      Serialized bytes

    • Computes the signing share from a list of coefficients.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • coefficients: C["Scalar"][]

        Polynomial coefficients

      • peer: Identifier<C>

        The identifier of the peer

      Returns SigningShare<C>

      The computed signing share

    • Create a default (zero) SigningShare.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      Returns SigningShare<C>

      A zero SigningShare

    • Check equality with another SigningShare.

      Parameters

      Returns boolean

      True if equal

    • Clone this SigningShare.

      Returns SigningShare<C>

      A new SigningShare with the same value

    • Convert to string representation.

      Returns string

      Debug string (redacted for security)

    • Convert to a VerifyingShare.

      Returns VerifyingShare<C>

      The corresponding VerifyingShare