FROST secp256k1-TR (Taproot) TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Class SigningShareImpl<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 SigningShareImpl<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 SigningShareImpl<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: IdentifierImpl<C>

        The identifier of the peer

      Returns SigningShareImpl<C>

      The computed signing share

    • Check equality with another SigningShare.

      Parameters

      Returns boolean

      True if equal

    • Convert to string representation.

      Returns string

      Debug string (redacted for security)