Hi JOSE WG, and Christian and Brent in particular. Please find my review comments on draft-bormann-jwp-modular-bbs-03 <https://datatracker.ietf.org/doc/draft-bormann-jwp-modular-bbs/03/> below.
- 2.3. Claims Mapping <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-claims-mapping> Just a thought: instead of a pair array, have we considered using something like negative indices (or even more strange: non-integer values) for `scalar: true`? (This is probably not a better idea than the pair array format, but just in case.) The main advantage would be that it would simplify the parsing procedure. With pair arrays, the parser needs to "step out" one level when it encounters an integer, instead of inserting a leaf value at the current position in the tree. That is because there may also be structural arrays in the cmap, so the parser needs to descend recursively into arrays (or look ahead one level into arrays before descending) before it can detect whether the array represents a leaf value. If leaves were always and only directly indicated by single scalar values, there would be no need to back out one level before inserting the leaf. - 2.3. Claims Mapping <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-claims-mapping> "Receivers MUST validate cmap before use [...]" Should/could we also make it a hard requirement that cmap (and indeed the whole issuer header) is in a canonical encoding (i.e., canonical ordering of cmap keys, and canonical ordering of payload indices)? That would enable Holders to independently verify the absence of a correlation handle in this encoding, without need for any trusted third party (e.g., a trusted registry of specific allowed issuer headers per issuer). - 3.2. Credential Issuance <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-credential-issuance> "A non-normative example of the Compact Serialization:" This isn't really an example of a compact serialization, rather an outline of its structure. Consider reformulating as someting like: "For example, the Compact Serialization of a credential with 11 messages would have the following structure:" "Each <m_i> is the base64url-encoded Issuer Payload for index i (e.g., m_1 is "Mustermann" including the quotes, m_10 is 1786000000)." The examples are arguably contradictory: it's rather something like '(e.g., `m_1` is base64url(`"Mustermann"` including the quotes), `m_10` is base64url(`1786000000`))'. I'm not sure how one would neatly write that out without weighing down the text too much, though. - 4.5. Presentation Verification <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-presentation-verification> "4. [...] Confirming that the disclosed indices recovered from the proof are exactly the positions of the non-empty Presentation Payloads." I think the core BBS verification procedure does this internally (assuming the verifier passes every non-empty presentation payload in the messages argument): it verifies that the proof contains the expected number of scalars for the given number of disclosures, and that the positions of those disclosures line up with the correct generators for the proof to be valid. It might not hurt to have this as an explicit additional step, but I think it's probably unnecessary. - 4.6. Example Presentation <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-example-presentation> "[...] The Holder attaches a range sub-proof over index 10 proving now <= exp < 2^63 [...]" Section 2.5 recommends that "Issuers SHOULD keep scalar = false number values within the I-JSON [RFC7493] range", which seems to be [-(2^53)+1, (2^53)-1]) as far as I can tell. Was this example meant to be `exp < 2^53`? Oh, on the other hand I suppose the *proof* is not necessarily limited to the I-JSON range (unless it itself represents numbers in JSON), only the transmission of the actual `exp` value from Issuer to Holder. Perhaps that's a distinction worth pointing out somewhere. - 7.1. Issuer Header Correlation <https://www.ietf.org/archive/id/draft-bormann-jwp-modular-bbs-03.html#name-issuer-header-correlation> "Fixing the cmap layout (including all optional attributes and maximum-length array slots) with a constant serialization." (Repeat of comment above) Should this be a hard requirement (so that Holders, and in particular general-purpose JWP libraries, can verify it without need of a trusted external monitoring/certification party)? Thank you for your work on the draft! I look forward to its adoption by the WG. Emil Lundberg Staff Engineer | Yubico <http://www.yubico.com/>
_______________________________________________ jose mailing list -- [email protected] To unsubscribe send an email to [email protected]
