dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Type Alias DigestPattern

    DigestPattern:
        | { variant: "Any" }
        | { variant: "Value"; value: Digest }
        | { variant: "Prefix"; prefix: Uint8Array }
        | { variant: "BinaryRegex"; pattern: RegExp }

    Pattern for matching digest values in dCBOR. Digests are represented as tagged values with tag 40001.

    Note: The BinaryRegex variant uses a RegExp that matches against the hex-encoded string representation of the digest bytes. This is a known difference from the Rust implementation which uses regex::bytes::Regex.