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

    Type Alias ValidationIssue

    ValidationIssue:
        | { type: "HashMismatch"; expected: Uint8Array; actual: Uint8Array }
        | { type: "KeyMismatch" }
        | { type: "SequenceGap"; expected: number; actual: number }
        | { type: "DateOrdering"; previous: Date; next: Date }
        | { type: "NonGenesisAtZero" }
        | { type: "InvalidGenesisKey" }

    Why a mark does not follow its predecessor. The payloads are values; the renderers format them.

    Type Declaration

    • { type: "HashMismatch"; expected: Uint8Array; actual: Uint8Array }
      • type: "HashMismatch"

        The predecessor's hash does not commit to this mark's key.

      • expected: Uint8Array

        The hash the predecessor should carry.

      • actual: Uint8Array

        The hash it carries.

    • { type: "KeyMismatch" }
      • type: "KeyMismatch"

        The predecessor's hash was not made from this mark's key.

    • { type: "SequenceGap"; expected: number; actual: number }
      • type: "SequenceGap"

        The sequence number is not the predecessor's plus one.

      • expected: number

        The sequence number expected.

      • actual: number

        The sequence number found.

    • { type: "DateOrdering"; previous: Date; next: Date }
      • type: "DateOrdering"

        The date is earlier than the predecessor's.

      • previous: Date

        The predecessor's date.

      • next: Date

        This mark's date.

    • { type: "NonGenesisAtZero" }
      • type: "NonGenesisAtZero"

        A mark at sequence 0 that is not a genesis mark.

    • { type: "InvalidGenesisKey" }
      • type: "InvalidGenesisKey"

        A genesis mark whose key is not its chain id.