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

    Class Delta<C>

    A delta value which is the output of step 1 of RTS.

    Type Parameters

    Index

    Constructors

    • Create a new Delta from a scalar.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • scalar: C["Scalar"]

        The scalar value

      Returns Delta<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 Delta<C>

      The deserialized Delta

      If deserialization fails

    • Serialize to bytes.

      Returns Uint8Array

      Serialized bytes

    • Check equality with another Delta.

      Parameters

      • other: Delta<C>

        The other Delta

      Returns boolean

      True if equal