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

    Class ProvenanceSeed

    The 32 bytes a generator's whole chain derives from. 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 InvalidSeedLength (a non-byte-string a TypeError).

      Parameters

      • bytes: Uint8Array

      Returns ProvenanceSeed

    • Fresh randomness, from rng or the secure default.

      Parameters

      • __namedParameters: RngOptions = {}

      Returns ProvenanceSeed

    • A byte string.

      Returns Cbor

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

      Parameters

      • cborValue: Cbor

      Returns ProvenanceSeed