• Create a normalized branded hex ID from a raw string. Normalizes to 0x-prefixed lowercase. Validates that the input is a non-empty hex string (with or without 0x prefix).

    Type Parameters

    • B extends string

    Parameters

    • raw: string

    Returns HexId<B>

    if the input is empty or contains non-hex characters.