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

    Class SerializableElement<C>

    Helper class to serialize an Element.

    Type Parameters

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    value: Element<C>

    Methods

    • Serialize an Element. Throws an error if it's the identity.

      Returns Uint8Array

    • Deserialize an Element. Throws an error if it's malformed or is the identity.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite providing deserialization

      • bytes: Uint8Array

        The bytes to deserialize

      Returns SerializableElement<C>

      A new SerializableElement

      GroupError if deserialization fails