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

    Class VerifyingShare<C>

    A public group element that represents a single signer's public verification share.

    Type Parameters

    Index

    Constructors

    • Create a new VerifyingShare from an element.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • element: C["Element"]

        The group element

      Returns VerifyingShare<C>

    Methods

    • Get the inner element value.

      Returns C["Element"]

      The element value

    • Deserialize from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • bytes: Uint8Array

        Serialized bytes

      Returns VerifyingShare<C>

      The deserialized VerifyingShare

      If deserialization fails

    • Serialize to bytes.

      Returns Uint8Array

      Serialized bytes

      If serialization fails

    • Check equality with another VerifyingShare.

      Parameters

      Returns boolean

      True if equal

    • Clone this VerifyingShare.

      Returns VerifyingShare<C>

      A new VerifyingShare with the same value

    • Convert to string representation.

      Returns string

      Debug string with hex element