@blockchaincommons/provenance-mark - v1.0.0-beta.3
    Preparing search index...

    Class RngState

    The 32 bytes of xoshiro256** state a generator persists between marks. Frozen.

    Index
    • get bytes(): Uint8Array

      A copy of the bytes.

      Returns Uint8Array

    • get hex(): string

      The bytes as hex.

      Returns string

    • Exactly 32 bytes; anything else is InvalidRngStateLength (a non-byte-string a TypeError).

      Parameters

      • bytes: Uint8Array

      Returns RngState

    • A state from a CBOR byte string. A rejection is Cbor with the dcbor error's message, or the length error's, as the reference's TryFrom<CBOR> reports it.

      Parameters

      • cborValue: Cbor

      Returns RngState