From ff5a2ae80ef83680a1ecb58ec5f56d75b6b2c5f9 Mon Sep 17 00:00:00 2001 From: Wind4Greg Date: Thu, 4 Jan 2024 10:42:40 -0800 Subject: [PATCH] i18n improvements wrt UTF-8. --- index.html | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index b0cfe59..e55c1f8 100644 --- a/index.html +++ b/index.html @@ -599,8 +599,11 @@

parseBaseProofValue

    +
  1. -Ensure the `proofValue` string starts with `u`, indicating that it is a +Ensure the `proofValue` string starts with +u +U+0055 LATIN SMALL LETTER U, indicating that it is a multibase-base64url-no-pad-encoded value, and throw an error if it does not.
  2. @@ -711,10 +714,9 @@

    createDisclosureData

-
  • -Initialize `bbsMessages` to an array of byte arrays obtained from the -UTF-8 encoding of the the values in the `nonMandatory` array. +Initialize `bbsMessages` to an array of byte arrays containing the values in the +`nonMandatory` array of strings encoded using the UTF-8 [[i18n-glossary]] character encoding.
  • Recompute the `bbsHeader` using the following steps: @@ -893,8 +895,11 @@

    parseDerivedProofValue

    1. -Ensure the `proofValue` string starts with `u`, indicating that it is a -multibase-base64url-no-pad-encoded value, and throw an error if it does not. +Ensure the `proofValue` string starts with +u +U+0055 LATIN SMALL LETTER U, indicating that +it is a multibase-base64url-no-pad-encoded value, and throw an error if it does +not.
    2. Initialize `decodedProofValue` to the result of base64url-no-pad-decoding the @@ -1238,8 +1243,8 @@

      Base Proof Serialization (bbs-2023)

      that order.
    3. -Initialize `bbsMessages` to an array of byte arrays obtained from the -UTF-8 encoding of the the values in the `nonMandatory` array. +Initialize `bbsMessages` to an array of byte arrays containing the values in the +`nonMandatory` array of strings encoded using the UTF-8 character encoding.
    4. Compute the `bbsSignature` using the `Sign` procedure of [[CFRG-BBS-Signature]]