Network Working Group T. Le Internet-Draft 2 December 2026 Intended status: Informational Expires: 5 June 2027 Principles for Comparing Independently Derived Identifiers draft-le-comparing-derived-identifiers-02 Abstract Protocols and applications often compare independently derived identifiers, such as key thumbprints or content hashes, to test whether separately held inputs represent equivalent sources. Applications define source equivalence independently of any derivation algorithm. Even when cryptographic primitives work as specified, lossy or divergent admission, mapping, derivation, or wire-carrier rules can split equivalent sources or merge non- equivalent ones, and finite output capacity can force merges. This Informational document presents architectural principles for such comparisons through a five-element comparison contract covering input domain and source equivalence; retained distinctions; complete derivation; carrier and contract binding; and intended conclusion and source binding. It clarifies what mismatch, match, and inconclusive outcomes establish -- including computational bounds on match inference -- without defining any new format, algorithm, authorization policy, or conformance requirement. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 5 June 2027. Le Expires 5 June 2027 [Page 1] Internet-Draft Comparing Derived Identifiers December 2026 Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. The Comparison Contract . . . . . . . . . . . . . . . . . . . 4 2.1. Pipeline and Core Terms . . . . . . . . . . . . . . . . . 4 2.2. Five Elements of a Comparison Contract . . . . . . . . . 5 3. Interpreting Comparison Outcomes . . . . . . . . . . . . . . 7 3.1. Mismatch and Source-Level Coherence . . . . . . . . . . . 8 3.2. Match, Output Capacity, and Pre-Hash Separation . . . . . 8 3.3. Inconclusive Outcomes . . . . . . . . . . . . . . . . . . 9 3.4. Wire Carriers and Cross-Contract Bridges . . . . . . . . 10 4. Worked Examples . . . . . . . . . . . . . . . . . . . . . . . 11 4.1. Key Identifier and Role-Name Association . . . . . . . . 11 4.2. Elliptic Curve Coordinate Width . . . . . . . . . . . . . 11 4.3. Wire-Carrier Rules in URN and ni URIs . . . . . . . . . . 12 5. Reviewing a Comparison Contract . . . . . . . . . . . . . . . 12 6. Security Considerations . . . . . . . . . . . . . . . . . . . 13 6.1. Adversary Models, Fail-Closed Defaults, and Timing . . . 13 6.2. Deployment Lessons from Key Thumbprints . . . . . . . . . 14 7. Privacy Considerations . . . . . . . . . . . . . . . . . . . 14 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 15 9. Informative References . . . . . . . . . . . . . . . . . . . 15 Appendix A. Symbolic Model and Related Work . . . . . . . . . . 18 A.1. Symbolic Model . . . . . . . . . . . . . . . . . . . . . 18 A.2. Relationship to Existing Work . . . . . . . . . . . . . . 18 Appendix B. Worked Vectors . . . . . . . . . . . . . . . . . . . 19 B.1. RSA Exponent Split . . . . . . . . . . . . . . . . . . . 19 B.2. P-256 Leading-Zero Split . . . . . . . . . . . . . . . . 19 B.3. Whole-NSS Case Folding Witness . . . . . . . . . . . . . 20 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 21 Le Expires 5 June 2027 [Page 2] Internet-Draft Comparing Derived Identifiers December 2026 1. Introduction Deriving an identifier is often straightforward. Deciding what a comparison of independently derived identifiers establishes is not. In this document, an independently derived identifier is a deterministic result over admitted sources -- such as a key thumbprint, content hash, or canonical digest -- that separate implementations compute under shared rules without a central naming authority. Source equivalence is defined by the application independently of any derivation algorithm. Even when cryptographic primitives work as specified, lossy or divergent rules at any stage -- admission, mapping, derivation, or wire carriers -- can split equivalent sources (false non-matches) or merge non-equivalent ones (false matches), while finite output capacity can force false matches on its own. This document addresses one central question: what must a protocol specification pin down so that comparing independently derived identifiers soundly supports an application's intended conclusions about source equivalence? Answering that question requires treating identifier comparison as an end-to-end contract rather than as a property of a downstream derivation or hash function alone. This document calls the pinned rules and assumptions that govern these comparisons a comparison contract; such a contract distinguishes mismatch exclusion, match inference under output-capacity and adversary-model bounds, and inconclusive outcomes when admission, required bindings, or evaluation fail. This work complements RFC 6943 [RFC6943], which examines identifier comparison, character rules, lifecycle issues, and false-positive or false-negative risks across protocols. Here, the focus narrows to the pipeline from admitted sources through optional wire carriers. The document presents a five-element comparison contract (Section 2), characterizes comparison outcomes across single-contract and bridged settings (Section 3), applies the contract to worked protocol examples (Section 4), and provides a specification review checklist (Section 5). This Informational document is written for protocol specification authors and reviewers, with implementers as a secondary audience. It defines no new identifier syntax, Uniform Resource Identifier (URI) scheme, canonicalization format, cryptographic algorithm, authorization policy, or conformance requirement. Opaque or centrally assigned identifiers that depend on a naming authority for resolution are outside its scope. Le Expires 5 June 2027 [Page 3] Internet-Draft Comparing Derived Identifiers December 2026 2. The Comparison Contract State what an application compares before choosing how to derive an identifier. Equating configuration equivalence with thumbprint equality silently changes the question being asked. A comparison contract is a design-time specification artifact that pins five elements: the admitted input domain and source equivalence, retained distinctions, complete derivation, wire-carrier and contract binding, and intended conclusion and source binding. 2.1. Pipeline and Core Terms A single derivation runs three deterministic stages in sequence: mapping an admitted source to a mapped value, framing that value into a complete input, and applying a deterministic downstream derivation -- whether or not it is a cryptographic hash -- to produce a raw output (Figure 1; see also Appendix A.1). Optional carrier encoding converts raw outputs into admitted wire strings; decoding accepts admitted carriers only and recovers the encoded raw output. +-----------------+ +------------------------------------+ | Candidate | | Pinned Contract Profile (1-4) | +--------+--------+ | 1. Domain & source equivalence | | admit | 2. Mapping & distinctions | v | 3. Framing & derivation | +--------+--------+ | 4. Output, carrier & contract | | Admitted Source | +------------------------------------+ +--------+--------+ | map v +--------+--------+ +-----------------+ | Mapped Value | | Claimed Source | +--------+--------+ +--------+--------+ | frame ^ v : 5. Conclusion +--------+--------+ : & source | Complete Input | : binding +--------+--------+ : | derive : v + - - - - - - - - - - - - - - - - - + +--------+-----+--+ +--------+--------+ | Raw Output |<--------------------->| Wire Carrier | +-----------------+ encode / decode +-----------------+ (optional) Figure 1: Single-Derivation Pipeline and Evidence Bindings Le Expires 5 June 2027 [Page 4] Internet-Draft Comparing Derived Identifiers December 2026 This document uses the following terms, aligned with RFC 6943 [RFC6943]: * Admitted source domain and source equivalence: the set of accepted inputs and the independent relation deciding which admitted inputs count as equivalent. * Mapped value, framing, and complete input: the result of source mapping, the unambiguous serialization applied to it, and the exact input fed to the downstream derivation. * Wire carrier and carrier comparison rule: the accepted wire representation of a raw output and the rule used to compare two carriers, which need not be octet equality. * Coherence: equivalent admitted sources always yield equal raw outputs. * Exact reflection: equal raw outputs arise only from equivalent admitted sources. * Complete-input separation: non-equivalent admitted sources always yield distinct complete inputs before the downstream derivation. * Comparison outcomes: a match (equal raw outputs or matching admitted carriers), a mismatch (unequal raw outputs or non- matching admitted carriers), or an inconclusive outcome (Section 3.3). * False match and false non-match: equal outputs or matching carriers for non-equivalent sources (false match), and unequal outputs or non-matching carriers for equivalent sources (false non-match). These correspond to false positives and false negatives in Section 2.1 of RFC 6943 [RFC6943]. * Claimed source and source binding: the subject about which a conclusion is drawn, and the local or authenticated remote evidence tying an identifier to that subject. 2.2. Five Elements of a Comparison Contract A comparison contract records five design decisions. The first four define the pinned contract profile (derivation and wire boundary), which together with any scope- or epoch-pinned key or salt forms an instantiated contract; the fifth defines what conclusion is sought and how identifiers bind to claimed sources. A change to any choice pinned by the first four elements -- or to a pinned key or salt -- defines a different contract, whereas changing only contract- signaling transport or allow-list policy does not. Identifiers produced under an old contract keep its semantics and are not silently reinterpreted (Section 3.4). Domain and source equivalence: Pin which candidate inputs are admitted, how parser edge cases are handled, and which source relation is tested. Parser edge cases include duplicate JavaScript Object Notation (JSON) keys (Section 4 of RFC 7517 Le Expires 5 June 2027 [Page 5] Internet-Draft Comparing Derived Identifiers December 2026 [RFC7517]), number representation [RFC7493], and internationalized strings [RFC8264]. Permissive parsing is not semantic admission, and semantic bounds (such as the input-length bound of Secure Hash Algorithm 256 (SHA-256) [NIST-FIPS-180-4]) differ from resource limits. Because exact output equality is reflexive, symmetric, and transitive, coherence and sound match inference -- whether exact reflection or computational match -- can hold together only when the target source relation is an equivalence relation. Exact identifier equality cannot serve as a sound test for non- equivalence relations such as ordering, similarity, containment, or shared prime factors (Section 6.2). Admission rules directly control splits. For example, RSA JSON Web Key (JWK) Thumbprints [RFC7638] rely on minimal big-endian Base64urlUInt encodings (Section 2 of RFC 7518 [RFC7518]), and a strict admission rule also rejects nonzero base64url pad bits (Section 3.5 of RFC 4648 [RFC4648] leaves decoder rejection optional unless mandated), preventing alternate encodings of one key from splitting into different digests (Section 3.1). Mapping and retained distinctions: State which source fields and structural relationships are retained, normalized, or omitted. Canonicalization schemes such as JSON Canonicalization Scheme (JCS) [RFC8785] or deterministic Concise Binary Object Representation (CBOR) [RFC8949] normalize only within their target data model. They cannot restore distinctions already dropped by mapping, such as an omitted "kid" member. Complete derivation: Pin framing, algorithms, parameters, versions, field orderings, encodings, and external dependencies. Fully- specified algorithm identifiers -- or explicit curve and hash parameter pins -- are needed in JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE) [RFC9864]. Any mutable remote context or internal parameter needs an immutable digest or version pin. Output, wire carrier, and contract binding: Pin output form (including any truncation), admitted carrier syntax, decoding on admitted carriers only, and the carrier comparison rule. Carrier comparison can differ from octet equality, as in URIs [RFC3986], Named Information (ni) URIs [RFC6920], and Uniform Resource Names (URNs) [RFC8141]. Pin how the consumer knows which contract governs a comparison. A single-contract profile fixes the contract in local state without wire signaling, as when an application profile pins one hash Le Expires 5 June 2027 [Page 6] Internet-Draft Comparing Derived Identifiers December 2026 function for JWK Thumbprints [RFC7638] or COSE Key Thumbprints [RFC9679]. When multiple contracts coexist during migration [RFC7696] or across profiles, bind an unambiguous identifier for the instantiated contract (including any pinned key identifier, salt, or epoch) out of band or inside an authenticated envelope, and check it against a local allow-list: authentication prevents contract substitution, while the allow-list rejects unknown or retired contracts. By contrast, a static self-describing ni URI [RFC6920] names a hash suite without negotiating contracts, and without authentication or an allow-list it cannot prevent downgrade or pin upstream rules. Intended conclusion and source binding: State whether the comparison tests mismatch, exact match, or computational match, and bind each compared identifier to its claimed source. A side can be bound locally by checking admission on the full candidate input and recomputing the contract (committing to retained fields only), or remotely through authenticated evidence supplied by the surrounding protocol that ties the identifier and its governing instantiated contract (including any scope- or epoch-pinned key identifier or salt) to the claimed source snapshot. Unlike local recomputation, remote evidence relies on the attester's correctness and honesty (Section 6.1). Both sides need contract and source bindings, including when pairing local recomputation with remote evidence; unverified identifiers leave outcomes inconclusive (Section 3.3). Source binding establishes derivation provenance only, never ownership or authorization (Section 6). 3. Interpreting Comparison Outcomes Definite conclusions in Sections 3.1 and 3.2 assume that both inputs pass admission, one unambiguous contract governs the comparison (or Section 3.4 applies), derivation and comparison execute as specified, and -- when the conclusion targets claimed sources -- both sides carry verified source bindings. If any of these fails, the outcome is inconclusive (Section 3.3). Requiring a finer distinction than a derivation retains is a contract misalignment, not a hash-function defect. Le Expires 5 June 2027 [Page 7] Internet-Draft Comparing Derived Identifiers December 2026 3.1. Mismatch and Source-Level Coherence Unequal outputs exclude source equivalence whenever equivalent admitted sources always yield equal outputs. This property -- source-level coherence -- is purely contrapositive. It requires no collision-resistance assumption and yields zero false non-matches across admitted inputs (false negatives in Section 2.1 of RFC 6943 [RFC6943]). In a staged pipeline, coherence holds whenever mapping sends equivalent sources to equal mapped values so that unambiguous framing yields identical complete inputs before deterministic derivation. Tightening admission so only one canonical spelling is admitted, such as minimal "AQAB" rather than "AAEAAQ" for RSA exponent 65537 [RFC7638] [RFC7518], turns non-canonical spellings into out-of-domain rejections (Section 3.3) and restores coherence on the tightened domain without sacrificing separation, provided peers enforce that admission rule uniformly (Appendix B.1). 3.2. Match, Output Capacity, and Pre-Hash Separation Equal outputs can arise from equivalent sources, from upstream erasure before hashing, or from a downstream collision. Match inference is therefore asymmetric with mismatch exclusion. Exact match without error requires exact reflection: non-equivalent admitted sources never yield equal outputs. Output capacity -- and the count of carrier equivalence classes when carrier comparison is an equivalence relation -- needs to be at least the number of source equivalence classes. Once distinct source classes outnumber possible outputs, the pigeonhole principle forces false matches even for an ideal hash. When distinct source classes outnumber output capacity -- or when output capacity suffices but downstream derivation is not proved injective on the complete-input image -- equal outputs provide at most computational assurance relative to an explicit adversary experiment [RFC4270], and give no posterior probability of equivalence without an input prior. Chosen-pair collision search, second-preimage search against a given input, and secret-keyed derivation are distinct models whose bounds do not transfer to one another. Once the key is known, a keyed derivation degrades at best to an unkeyed function (and many keyed primitives offer no collision or second-preimage resistance under a known key). Rotating a key or salt defines a different contract unless bridged. Le Expires 5 June 2027 [Page 8] Internet-Draft Comparing Derived Identifiers December 2026 Attributing any false match to a downstream collision requires complete-input separation (Appendix A.1). Concatenating ("ab","c") and ("a","bc") produces "abc", forcing every hash function to collide. By analogy to the Horton Principle [Ferguson2010], unambiguous framing keeps distinct values separate before hashing -- for example with structured tuple framing such as TupleHash [NIST-SP800-185] or explicit domain-separation tags [RFC9380]. Three recurring serialization hazards break coherence or separation: * Algorithm-identifier ambiguity: Polymorphic JOSE or COSE algorithm tags -- such as EdDSA (Edwards-Curve Digital Signature Algorithm) or COSE ES256 -- omit curve or hash parameters [RFC9864]. Fully- specified tags or explicit parameter pinning remove that ambiguity. * Reject-or-normalize and decode-then-reencode: Base specifications that allow implementations either to reject or to normalize non- canonical inputs -- such as nonzero base64url pad bits (Section 3.5 of RFC 4648 [RFC4648]) or duplicate JSON keys where parsers may reject or take the lexically last member (Section 4 of RFC 7517 [RFC7517]) -- split conforming peers unless the contract pins one choice at admission. Re-canonicalizing after permissive parsing also cannot restore distinctions already lost, such as IEEE 754 binary64 rounding noted in RFC 8785 [RFC8785]. * Non-round-trip JSON and CBOR conversion: Section 6.1 of RFC 8949 [RFC8949] notes that converting CBOR byte strings, bignums, and text strings into JSON strings -- or mapping non-finite floats and undefined to JSON null -- erases type distinctions. Converting JSON back to CBOR (Section 6.2 of RFC 8949; Internet JSON (I-JSON) [RFC7493]) similarly varies across integer ranges and floating- point rounding. 3.3. Inconclusive Outcomes Out-of-domain rejections and indeterminate evaluations establish neither equivalence nor non-equivalence: * Out-of-domain rejection: A candidate source or wire carrier fails pinned admission. Because source equivalence and decoding apply only to admitted inputs, rejection establishes only non-admission. * Indeterminate evaluation: Missing contract metadata, unpinned mutable state, missing source binding, timeouts, or resource refusals leave comparability undetermined. Protocols assign downstream error defaults to inconclusive outcomes based on allow-list or deny-list polarity (Section 6). Le Expires 5 June 2027 [Page 9] Internet-Draft Comparing Derived Identifiers December 2026 3.4. Wire Carriers and Cross-Contract Bridges Wire-carrier comparison inherits the asymmetry between mismatch and match. Transferring mismatch across admitted carriers requires that admitted carriers for equal raw outputs always match (no carrier splits); transferring match requires that matching admitted carriers always decode to equal raw outputs (no carrier merges). When multiple encoders emit distinct carriers for one output, or when carrier comparison ignores unpinned wrapper components (as in ni URIs [RFC6920]; Section 4.3), naive string equality splits conforming peers. Decoding admitted carriers to raw outputs before comparing -- while verifying or preserving any embedded contract or algorithm tag -- avoids carrier-rule surprises without collapsing distinct contracts. Distinct contracts do not become comparable by reinterpreting existing outputs: each can be internally coherent -- and even agree on a shared subset -- yet still split equivalent sources or merge non-equivalent ones across contracts, as across X.509 SubjectKeyIdentifier methods (Section 4.2.1.2 of RFC 5280 [RFC5280]; RFC 7093 [RFC7093]), COSE ckt versus JWK jkt thumbprints (Section 5.5 of RFC 9679 [RFC9679]), and CBOR bytewise versus length-first map sorting (Sections 4.2.1 and 4.2.3 of RFC 8949 [RFC8949]). Comparing across contracts therefore requires either recomputing both sides under one common contract with explicit contract binding, or specifying an explicit bridge that pins the target cross-contract relation over the two admitted domains and a verifiable set of permitted input pairs (leaving pairs outside that set, or whose membership cannot be verified from available bindings, inconclusive). When a bridge compares raw outputs directly -- or through an explicit output projection such as shared-prefix truncation -- both contracts need to share the same downstream derivation function (including any key or salt) before comparison or projection, or else justify a joint cross-primitive output assumption. Under that shared derivation, mismatch exclusion requires that related permitted pairs always yield equal compared outputs, while match inference requires either that equal compared outputs arise only from related permitted pairs or that unrelated permitted pairs always yield distinct complete inputs under a compatible adversary experiment at the compared output capacity (per-contract separation alone does not prevent cross- contract input collisions). Because output equality is symmetric and transitive, supporting both mismatch exclusion and sound match inference across contracts requires the target relation to be closed under equality chains over permitted pairs (for example, if permitted pairs (a, b), (a', b), and (a', b') are related, any permitted pair (a, b') is also related). Le Expires 5 June 2027 [Page 10] Internet-Draft Comparing Derived Identifiers December 2026 4. Worked Examples The following examples apply the comparison contract to concrete splits and merges, locating the earliest failing stage in each case. 4.1. Key Identifier and Role-Name Association Mapping loss happens by omitting optional fields or by erasing structural links between retained values. * JWK "kid" omission: Because RFC 7638 [RFC7638] excludes the optional "kid" member (Section 4.5 of RFC 7517 [RFC7517]), keys with different or absent "kid" values produce identical JWK Thumbprints and JWK Thumbprint URIs [RFC9278]. Coherence holds, but reflection fails if the application treats "kid" as significant. Section 4 of RFC 7517 governs duplicate member names within one JWK, not "kid" uniqueness across keys. * Role-to-name association erasure: Consider (role, name) lists where equivalence depends on the set of (role, lowercase-name) pairs. Hashing the set of roles separately from the set of names preserves coherence yet merges [(origin, Alice), (destination, Bob)] with [(origin, Bob), (destination, Alice)]. Retaining normalized paired entries with deduplication, canonical ordering, and unambiguous framing preserves coherence and restores complete- input separation. 4.2. Elliptic Curve Coordinate Width Section 8.1 of RFC 8555 [RFC8555] originally directed Automatic Certificate Management Environment (ACME) implementations to strip prepended zero octets from the fields of a JWK object, leading implementations to strip elliptic-curve coordinates as well. However, Elliptic Curve Digital Signature Algorithm (ECDSA) "x" and "y" coordinates in JWK are fixed-width: 32, 48, and 66 octets for P-256, P-384, and P-521 (Sections 6.2.1.2 and 6.2.1.3 of RFC 7518 [RFC7518]). Verified RFC Erratum 7565 [Err7565] restricts stripping to extra prepended zeros and recommends fixed widths. Each rule is coherent on its own, but peers enforcing different coordinate-width representation rules diverge before derivation and split whenever a coordinate begins with 0x00 (Appendix B.2). Under an independent uniform leading-octet benchmark model (0x00 through 0xff for P-256 and P-384, and 0x00 or 0x01 for 521-bit P-521), P-256 and P-384 split with probability 511/65536 (roughly 0.78%, near the 1/128 failure rate noted in Erratum 7565 [Err7565]), while P-521 splits with probability 3/4 (75%). Legacy deployments can migrate by recomputing under both rules, flagging splits, and re-binding affected keys under one pinned contract. Le Expires 5 June 2027 [Page 11] Internet-Draft Comparing Derived Identifiers December 2026 4.3. Wire-Carrier Rules in URN and ni URIs Generic URN equivalence (Section 3.1 of RFC 8141 [RFC8141], contrasting with Section 6 of RFC 3986 [RFC3986]) lowercases the scheme and namespace identifier (NID), uppercases %XX hexadecimal escapes, ignores r-, q-, and f- components, and leaves non-percent- encoded Namespace Specific String (NSS) characters case-sensitive. The following two URNs therefore match: urn:ietf:params:oauth:jwk-thumbprint:sha-256: URN:IETF:params:oauth:jwk-thumbprint:sha-256: Namespaces may widen generic URN equivalence, and the parent ietf namespace registration (Section 2 of RFC 2648 [RFC2648]) historically marked the entire URN case-insensitive. However, the params sub- namespace specifies exact string matching under URN syntax rules (Section 3 of RFC 3553 [RFC3553]) with case-sensitive comparison of embedded values (Section 4 of RFC 3553 [RFC3553]), and JWK Thumbprint URIs [RFC9278] define no NSS case-folding widening. Applying case- insensitive comparison to the whole NSS is a wire-carrier defect: it merges distinct base64url digests that differ only in letter case with zero hash work. Even with verified source bindings, it weakens source-level collision and second-preimage resistance by collapsing letter-case variants (see Appendix B.3). By contrast, ni URI comparison (Section 2 of RFC 6920 [RFC6920]) compares the algorithm and decoded digest while ignoring authority and query parameters, so naive string equality splits conforming carriers. 5. Reviewing a Comparison Contract When reviewing a specification that compares derived identifiers, check five questions -- corresponding to the five contract elements in Section 2.2 -- against whole-domain rules rather than sample vectors alone: 1. Domain and source equivalence: Are admission rules, parser edge cases, and the target source relation pinned explicitly? If coherence and any sound match inference (exact or computational) are expected, is the target relation an equivalence relation? 2. Mapping and retained distinctions: Which fields and structural associations are retained, normalized, or omitted, and does mapping preserve source-level coherence without erasing needed distinctions? 3. Complete derivation: Are framing, fully-specified algorithms, parameters, field orderings, and immutable pins for any external context specified so that complete-input separation holds before downstream derivation? Le Expires 5 June 2027 [Page 12] Internet-Draft Comparing Derived Identifiers December 2026 4. Output, wire carrier, and contract binding: Does carrier comparison preserve the required mismatch or match direction, or do consumers decode to raw outputs first? Are coexisting contracts pinned or authenticated and allow-listed, with rule changes defining a new contract rather than reinterpreting old outputs, and with any cross-contract comparison governed by an explicit bridge (Section 3.4)? 5. Intended conclusion, capacity, and source binding: Does the claimed match conclusion respect output capacity and name its adversary experiment? Is each identifier bound to its claimed source without implying authorization, with fail-closed defaults for inconclusive outcomes? 6. Security Considerations 6.1. Adversary Models, Fail-Closed Defaults, and Timing Adversary capabilities are not interchangeable. Choosing both sources, attacking a fixed target, exploiting parser differentials, altering contract metadata, exhausting canonicalization budgets, and holding a secret key are separate threat models. For an ideal hash of fixed bit length, chosen-pair collision work has half the bit strength of second-preimage work against a fixed target (Section 2 of RFC 4270 [RFC4270]), and truncating the output lowers both proportionally (for example, 2^64 versus 2^128 at 128 bits). These generic baselines do not prove concrete SHA-256 collision resistance. To prevent downgrade attacks (Section 2.4 of RFC 7696 [RFC7696]), protocols authenticate or pin contract selection, algorithm parameters [RFC9864], and source bindings. When source binding relies on remote attestation rather than local recomputation, a compromised or dishonest attester can forge binding claims even under valid signatures. Equal outputs establish no authorization, ownership, or freshness on their own. Operations guarded by an identifier comparison act on immutable or versioned snapshots, or revalidate at use, to prevent time-of-check to time-of-use (TOCTOU) gaps. Allow-lists and deny-lists require opposite fail-closed defaults on inconclusive outcomes. An allow-list denies access whenever an evaluation is inconclusive. A deny-list blocks, quarantines, or resolves an inconclusive evaluation instead of treating it as a mismatch, which would fail open and allow bypass. On deny-lists, blocking malformed untrusted inputs is safe, while indeterminate failures from remote lookups or network timeouts can cause availability loss unless trust state and contexts are locally pinned or cached. Le Expires 5 June 2027 [Page 13] Internet-Draft Comparing Derived Identifiers December 2026 Expensive canonicalization procedures need resource ceilings to limit denial of service; hitting a ceiling yields an inconclusive outcome (Section 3.3). Constant-time output equality hides differing byte positions when comparing against a secret expected output, but it does not mask timing differences in parsing, carrier decoding, or derivation. 6.2. Deployment Lessons from Key Thumbprints * Symmetric-key thumbprints: A thumbprint over a symmetric key discloses a stable key verifier and remains sensitive to disclosure outside key holders. Resistance to offline guessing depends on key entropy (see Privacy Considerations in Section 7), not solely on the hash function's protection against key disclosure (compare Section 7 of RFC 7638 [RFC7638]). Separately, "k" (Section 6.4.1 of RFC 7518 [RFC7518]) encodes raw octets whose leading zeros are significant: stripping them within one contract merges non-equivalent keys (breaking complete-input separation), while peers that disagree on stripping split across contracts. * RSA deny-list overlap is not an equivalence relation: Tripling an RSA modulus (3*n) changes the JWK Thumbprint while still functioning roughly one-third of the time (Section 7 of RFC 7638 [RFC7638]). Sharing a prime factor is also non-transitive (p*q, q*r, r*s), so exact identifier equality cannot serve as a sound deny-list test for factor overlap. 7. Privacy Considerations Deterministic, unkeyed derivation produces a stable cross-context correlation handle [RFC6973] and enables offline guessing or registry probing on low-entropy inputs. A secret, domain-scoped key can inhibit offline guessing by observers who lack the key, provided the keyed derivation is secure and the key remains secret, though online throttling still matters. Distinct per-domain keys reduce direct output-equality linking without providing general unlinkability. A public per-domain salt prevents reusing an unkeyed lookup table directly, but anyone with the salt can still build a guessing table for low-entropy inputs or link records through other attributes. Finite outputs can also falsely link non-equivalent sources, and recomputing identifiers under a common contract can link previously separate domains (Section 3.4). Additional mitigations include ephemeral scoping, minimizing disclosure of identifiers and contract metadata, reviewing logs for correlation, and auditing rejection side channels and overlapping key-rotation windows. Le Expires 5 June 2027 [Page 14] Internet-Draft Comparing Derived Identifiers December 2026 8. IANA Considerations This document has no IANA actions. 9. Informative References [Err7565] RFC Editor, "RFC Errata (Verified)", Erratum ID 7565, RFC 8555, 11 January 2024, . [Ferguson2010] Ferguson, N., Schneier, B., and T. Kohno, "Cryptography Engineering: Design Principles and Practical Applications", Wiley, ISBN 978-0-470-47424-2, March 2010. [NIST-FIPS-180-4] National Institute of Standards and Technology, "Secure Hash Standard (SHS)", NIST FIPS 180-4, DOI 10.6028/NIST.FIPS.180-4, August 2015, . [NIST-SP800-185] Kelsey, J., Chang, S.-j., and R. Perlner, "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash and ParallelHash", NIST SP 800-185, DOI 10.6028/NIST.SP.800-185, December 2016, . [RFC2648] Moats, R., "A URN Namespace for IETF Documents", RFC 2648, DOI 10.17487/RFC2648, August 1999, . [RFC3553] Mealling, M., Masinter, L., Hardie, T., and G. Klyne, "An IETF URN Sub-namespace for Registered Protocol Parameters", BCP 73, RFC 3553, DOI 10.17487/RFC3553, June 2003, . [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, January 2005, . [RFC4270] Hoffman, P. and B. Schneier, "Attacks on Cryptographic Hashes in Internet Protocols", RFC 4270, DOI 10.17487/RFC4270, December 2005, . Le Expires 5 June 2027 [Page 15] Internet-Draft Comparing Derived Identifiers December 2026 [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, October 2006, . [RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, May 2008, . [RFC6920] Farrell, S., Kutscher, D., Dannewitz, C., Ohlman, B., Keranen, A., and P. Hallam-Baker, "Naming Things with Hashes", RFC 6920, DOI 10.17487/RFC6920, April 2013, . [RFC6943] Thaler, D., Ed., "Issues in Identifier Comparison for Security Purposes", RFC 6943, DOI 10.17487/RFC6943, May 2013, . [RFC6973] Cooper, A., Tschofenig, H., Aboba, B., Peterson, J., Morris, J., Hansen, M., and R. Smith, "Privacy Considerations for Internet Protocols", RFC 6973, DOI 10.17487/RFC6973, July 2013, . [RFC7093] Turner, S., Kent, S., and J. Manger, "Additional Methods for Generating Key Identifiers Values", RFC 7093, DOI 10.17487/RFC7093, December 2013, . [RFC7493] Bray, T., Ed., "The I-JSON Message Format", RFC 7493, DOI 10.17487/RFC7493, March 2015, . [RFC7517] Jones, M., "JSON Web Key (JWK)", RFC 7517, DOI 10.17487/RFC7517, May 2015, . [RFC7518] Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, May 2015, . [RFC7638] Jones, M. and N. Sakimura, "JSON Web Key (JWK) Thumbprint", RFC 7638, DOI 10.17487/RFC7638, September 2015, . Le Expires 5 June 2027 [Page 16] Internet-Draft Comparing Derived Identifiers December 2026 [RFC7696] Housley, R., "Guidelines for Cryptographic Algorithm Agility and Selecting Mandatory-to-Implement Algorithms", BCP 201, RFC 7696, DOI 10.17487/RFC7696, November 2015, . [RFC8141] Saint-Andre, P. and J. Klensin, "Uniform Resource Names (URNs)", RFC 8141, DOI 10.17487/RFC8141, April 2017, . [RFC8264] Saint-Andre, P. and M. Blanchet, "PRECIS Framework: Preparation, Enforcement, and Comparison of Internationalized Strings in Application Protocols", RFC 8264, DOI 10.17487/RFC8264, October 2017, . [RFC8555] Barnes, R., Hoffman-Andrews, J., McCarney, D., and J. Kasten, "Automatic Certificate Management Environment (ACME)", RFC 8555, DOI 10.17487/RFC8555, March 2019, . [RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, DOI 10.17487/RFC8785, June 2020, . [RFC8949] Bormann, C. and P. Hoffman, "Concise Binary Object Representation (CBOR)", STD 94, RFC 8949, DOI 10.17487/RFC8949, December 2020, . [RFC9278] Jones, M. and K. Yasuda, "JWK Thumbprint URI", RFC 9278, DOI 10.17487/RFC9278, August 2022, . [RFC9380] Faz-Hernandez, A., Scott, S., Sullivan, N., Wahby, R. S., and C. A. Wood, "Hashing to Elliptic Curves", RFC 9380, DOI 10.17487/RFC9380, August 2023, . [RFC9679] Isobe, K., Tschofenig, H., and O. Steele, "CBOR Object Signing and Encryption (COSE) Key Thumbprint", RFC 9679, DOI 10.17487/RFC9679, December 2024, . Le Expires 5 June 2027 [Page 17] Internet-Draft Comparing Derived Identifiers December 2026 [RFC9864] Jones, M.B. and O. Steele, "Fully-Specified Algorithms for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)", RFC 9864, DOI 10.17487/RFC9864, October 2025, . Appendix A. Symbolic Model and Related Work A.1. Symbolic Model This section restates the single-contract coherence, mismatch exclusion, reflection, and complete-input separation conditions of Sections 2 and 3 in symbolic form. Symbols name the stages of Figure 1: S, V, I, and O are the admitted sources, mapped values, complete inputs, and raw outputs; ~_S is the pinned source relation on S; and pi, E, and H are the mapping, framing, and downstream derivation functions between them, each deterministic, with any key or salt fixed within H for the comparison. Here o denotes composition, => implication, and != inequality: Pipeline: (S, ~_S) --pi--> V --E--> I --H--> O Composite: G = H o E o pi, so G(s) = H(E(pi(s))) Single-contract (for all s_1, s_2 in S): Coherence: s_1 ~_S s_2 => G(s_1) = G(s_2) Mismatch exclusion: G(s_1) != G(s_2) => not (s_1 ~_S s_2) Reflection: G(s_1) = G(s_2) => s_1 ~_S s_2 Complete-input separation: not (s_1 ~_S s_2) => E(pi(s_1)) != E(pi(s_2)) Mismatch exclusion is the contrapositive of coherence, and reflection above is exact. When distinct source classes outnumber output capacity -- or when H is not proved injective on E(pi(S)) -- Section 3.2 instead frames match inference as computational assurance relative to a stated adversary experiment, given complete-input separation. A.2. Relationship to Existing Work Complementary to RFC 6943 [RFC6943] (lifecycle, canonicalization, character rules, false-positive and false-negative risks, and cross- protocol comparison in Section 5 of RFC 6943), this document focuses on contract conditions per derivation stage: admission (JWK [RFC7638], COSE [RFC9679], I-JSON [RFC7493]), mapping (JCS [RFC8785], CBOR [RFC8949], Preparation, Enforcement, and Comparison of Internationalized Strings (PRECIS) [RFC8264]), framing and derivation (TupleHash [NIST-SP800-185], expand_message domain-separation tags [RFC9380], fully-specified JOSE and COSE algorithms [RFC9864]), Le Expires 5 June 2027 [Page 18] Internet-Draft Comparing Derived Identifiers December 2026 cross-contract bridges (X.509 [RFC5280] [RFC7093]), wire carriers (ni [RFC6920], URI [RFC3986], URN [RFC8141]), and semantic framing (Horton Principle [Ferguson2010]). Appendix B. Worked Vectors The following reproducible vectors illustrate the splits and merges in Sections 3.1, 4.2, and 4.3. Octets use 0x-prefixed or space- separated lowercase hexadecimal; raw 32-octet coordinates and digests use 64-character lowercase hexadecimal, while thumbprints and encoded SHA-256 outputs use 43-character unpadded base64url. B.1. RSA Exponent Split This vector reproduces Section 3.1 using the modulus n from Section 3.1 of RFC 7638 [RFC7638] (line-wrapped without internal whitespace): e=AQAB decodes to octets 01 00 01 (65537) e=AAEAAQ decodes to octets 00 01 00 01 (65537, non-minimal) n = 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAt VT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn6 4tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FD W2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n9 1CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINH aQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw Thumbprint (e=AQAB): NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs Thumbprint (e=AAEAAQ): KhXKq_trhFEnJYJyG3akrCu05Ny-bGT_uB7vg3Tmd8c B.2. P-256 Leading-Zero Split This vector reproduces Section 4.2 for the fixed-width profile (theta_fixed) versus the zero-stripping profile (theta_strip) on P = 43 * G_P256, where "y" starts with 0x00 (JSON line-wrapped without whitespace): x=986ae2506f1ff104d04230861d8f4b498f4bc4c6d009b30f7544dc129b82d28d y=003cccc0a6460e0ae328a4d97d3c7b61d86fc6289c189f2525110c441bb07e97 theta_fixed: {"crv":"P-256","kty":"EC", "x":"mGriUG8f8QTQQjCGHY9LSY9LxMbQCbMPdUTcEpuC0o0", "y":"ADzMwKZGDgrjKKTZfTx7YdhvxiicGJ8lJREMRBuwfpc"} theta_strip: {"crv":"P-256","kty":"EC", "x":"mGriUG8f8QTQQjCGHY9LSY9LxMbQCbMPdUTcEpuC0o0", "y":"PMzApkYOCuMopNl9PHth2G_GKJwYnyUlEQxEG7B-lw"} SHA-256 fixed: WZsjbh58q8kl1WsGShqtiycImZtCgGbukDn4RAacMig SHA-256 strip: oynto_iDk7BbC1TpDhAjGoiBUFY63hdrK_AAqhuXqX8 Le Expires 5 June 2027 [Page 19] Internet-Draft Comparing Derived Identifiers December 2026 B.3. Whole-NSS Case Folding Witness Under whole-NSS ASCII case folding of a 43-character unpadded base64url SHA-256 digest (Sections 3.2, 3.5, and 5 of RFC 4648 [RFC4648]), two distinct 32-octet digests whose base64url encodings differ only in letter case collide on the wire carrier with zero hash work (whereas finding two source inputs that collide through the folded carrier still requires hash work, at reduced bit strength across the first 42 base64url positions; zero pad bits per Section 3.5 keep position 43 free of case-folding collisions). The following witness pair illustrates the carrier-layer merge on a JWK Thumbprint URN [RFC9278] (line-folded only): digest_0: 3736cbb1787cb8309c77ee8c3705c5e16ffb9e859715901f1e4c59b11182f57b base64url: NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs digest_1: 9f36cbb1787cb8309c77ee8c3705c5e16ffb9e859715901f1e4c59b11182f57b base64url: nzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs URN (digest_0): urn:ietf:params:oauth:jwk-thumbprint:sha-256: NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs Document History This section is to be removed before publishing as an RFC. Changes in -02 (since -01) * Restored the -00 "Principles" title and condensed the Abstract and Introduction. * Reorganized Sections 1-5 of -01 around a single-derivation pipeline, a five-element comparison contract (with explicit source binding), outcome conditions (mismatch, match with output-capacity and adversary-model bounds, inconclusive, wire carriers, and cross-contract bridges), and a five-question review checklist. * Replaced the -01 worked examples and reviews with concise examples (JWK "kid" and role-name association, ACME ECDSA coordinate width, and URN/ni URI carriers) and added fail-closed defaults for inconclusive outcomes, a single-contract symbolic model, and a worked-vectors appendix. Changes in -01 (since -00) * Added a contract-review method, representation admission/decoding, and worked JWK Thumbprint and role-association examples. Le Expires 5 June 2027 [Page 20] Internet-Draft Comparing Derived Identifiers December 2026 Author's Address Thanh Le Viet Nam Email: vnlemanhthanh@gmail.com Le Expires 5 June 2027 [Page 21]