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

    Function deserializeHeader

    • Deserialize a header from bytes.

      Type Parameters

      Parameters

      • ciphersuite: C

        The expected ciphersuite

      • bytes: Uint8Array

        The bytes to deserialize

      • humanReadable: boolean

        Whether data is in human-readable format

      Returns [Header<C>, Uint8Array<ArrayBufferLike>]

      A tuple of [header, remainingBytes]

      FrostError if deserialization fails