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

    Class CoefficientCommitment<C>

    A Group::Element newtype that is a commitment to one coefficient of our secret polynomial.

    This is a (public) commitment to one coefficient of a secret polynomial used for performing verifiable secret sharing for a Shamir secret share.

    Type Parameters

    Index

    Constructors

    • Create a new CoefficientCommitment.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • value: C["Element"]

        The group element value

      Returns CoefficientCommitment<C>

    Methods

    • Deserialize from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • bytes: Uint8Array

        Serialized bytes

      Returns CoefficientCommitment<C>

      The deserialized CoefficientCommitment

      If deserialization fails

    • Serialize to bytes.

      Returns Uint8Array

      Serialized bytes

      If serialization fails

    • Returns inner element value.

      Returns C["Element"]

      The element value

    • Check equality with another CoefficientCommitment.

      Parameters

      Returns boolean

      True if equal

    • Convert to string representation.

      Returns string

      Debug string with hex element