Skip to content

Commit

Permalink
i18n improvements wrt UTF-8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind4Greg committed Jan 4, 2024
1 parent ed835c7 commit ff5a2ae
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,11 @@ <h4>parseBaseProofValue</h4>
</p>

<ol class="algorithm">
<!-- <span class="codepoint" translate="no"><bdi lang="en">u</bdi><code class="uname">U+0055 LATIN SMALL LETTER U</code></span> -->
<li>
Ensure the `proofValue` string starts with `u`, indicating that it is a
Ensure the `proofValue` string starts with
<span class="codepoint" translate="no"><bdi lang="en">u</bdi>
<code class="uname">U+0055 LATIN SMALL LETTER U</code></span>, indicating that it is a
multibase-base64url-no-pad-encoded value, and throw an error if it does not.
</li>
<li>
Expand Down Expand Up @@ -711,10 +714,9 @@ <h4>createDisclosureData</h4>
</li>
</ol>
</li>

<li>
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.
</li>
<li>
Recompute the `bbsHeader` using the following steps:
Expand Down Expand Up @@ -893,8 +895,11 @@ <h4>parseDerivedProofValue</h4>

<ol class="algorithm">
<li>
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
<span class="codepoint" translate="no"><bdi lang="en">u</bdi>
<code class="uname">U+0055 LATIN SMALL LETTER U</code></span>, indicating that
it is a multibase-base64url-no-pad-encoded value, and throw an error if it does
not.
</li>
<li>
Initialize `decodedProofValue` to the result of base64url-no-pad-decoding the
Expand Down Expand Up @@ -1238,8 +1243,8 @@ <h4>Base Proof Serialization (bbs-2023)</h4>
that order.
</li>
<li>
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.
</li>
<li>
Compute the `bbsSignature` using the `Sign` procedure of [[CFRG-BBS-Signature]]
Expand Down

0 comments on commit ff5a2ae

Please sign in to comment.