UnicodeSecurity.Conflict (UnicodeSecurity v0.1.0)

Copy Markdown View Source

One existing identifier whose pinned skeleton equals the candidate's key.

index is the zero-based position in the supplied enumerable. code distinguishes exact original bytes, nonconfusable skeleton collisions (including IDNA-equivalent domain spellings), and the three confusable classes. comparison retains original-input facts and mapping evidence for both sides. A conflict is advisory; it does not establish ownership, impersonation, identifier validity, or an authorization decision.

Summary

Types

code()

@type code() ::
  :exact_duplicate
  | :skeleton_collision
  | :single_script_confusable
  | :whole_script_confusable
  | :mixed_script_confusable

t()

@type t() :: %UnicodeSecurity.Conflict{
  code: code(),
  comparison: UnicodeSecurity.Comparison.t(),
  existing: binary(),
  index: non_neg_integer(),
  input: binary(),
  key: binary(),
  unicode_version: binary()
}