{"RAIN_URI_Templates":
  {"issue_date":"2026-09-25",
   "Copyright":"The RAIN Alliance – https://therainalliance.org",
   "License":"Free to use unmodified for your own purposes. Provided as-is, without warranty or liability.",
   "notes":["MB01 uses a 6-bit lowercase character set. RUTvalues encoded in MB01 shall therefore use lowercase characters or identify URI components that are case-insensitive.",
            "MB11 uses UTF-8. UTF-8 character encodings can be one to four bytes.",
            "RUTselectors 64 to 255 can only be used in Add-on mode.",
            "In Identifier mode, RAIN_serial is the encoded UIIserial when present; otherwise, it is the TID serialisation.",
              "RAIN_serial is added as a query key unless the RUT maps it using {RAIN_serial}.",
            "In Add-on mode, RAIN_AFI is always added as a query key. RAIN_UII is added as a query key unless the RUT maps it using {RAIN_UII}.",
              "The {RAIN_UII} placeholder can only be used in Add-on mode.",
            "Where fewer RUTvalues are encoded than the number of variable fields in the selected RUT, each missing trailing RUTvalue shall be interpreted as an empty string."],
   "RUTs":
    [ {"selector":0,"RUT":"https://*?*",
                    "instructions":["The second * can be empty.",
                                    "When the first * is in UII, then the second * can be in either UII or UserMem."]},
      {"selector":1,"RUT":"https://doi.org/*?*",
                    "instructions":["The second * can be empty.",
                                    "The first * must be in UII. The second * can be in either UII or UserMem."]},
      {"selector":2,"RUT":"https://*/did:ethr:*0x{UIIserial}?*",
                    "instructions":["UIIserial is the hex encoded in the last data element of UII following the [STE]."]},
      {"selector":3,"RUT":"https://*/did:*?service=*",
                    "instructions":["The third * can be empty. The third * can be in UserMem."]},
      {"selector":4,"RUT":"https://*-id.therainalliance.io?*",
                    "instructions":["This RUT uses DNS hostname aliasing ensuring direct access to the resolver using DNS. Please contact the RAIN Alliance for options.",
                                    "This RUT also facilitates a 32-bit URL-Add-on encoded in UserMem, where the first * is limited to two characters.",
                                      "E.g. Example Inc. encodes 'ab' -> URL: 'https://ab-id.therainalliance.io?RAIN_AFI=..&RAIN_UII=...&RAIN_TID=...'",
                                      "With the appropriate DNS ALIAS 'https://ab-id.therainalliance.io' is translated to, say 'https://example_inc.com' which directly accesses the DPP.",
                                    "The second * can be empty."]},
      {"selector":5,"RUT":"did:*?service=*",
                    "instructions":["The second * can be empty. The second * can be in UserMem."]}
    ]}}
