Hi Emil, thanks for the review and feedback!
> - 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. Yeah, I don’t really like the current design and am hoping to simplify it if the scalar encoding goes into the bbs blind signature draft itself. That would also allow us to simplify the key binding handling a lot and make the sub-proof mechanism a bit more powerful. I have an example of what that could look like (with simplified key binding) here: https://github.com/c2bo/draft-bormann-jwp-modular-bbs/issues/6 (second example) > - 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). I was contemplating around that topic a bit but decided against it (at least initially) since canonical JSON encoding is always a problematic topic and it felt overkill in the initial example text I drafted. Happy to discuss that and see if people have better ideas than I had. > - 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. Fair point, I had planned to also add properly serialised examples there but haven’t come around to generating them yet and adding them to draft. Wording there should definitely be adjusted. > - 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. I might have overlooked that in the signature draft - might still be worthwhile to keep it here? > - 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. I think that is a residue from me changing the limit from a higher number I had chosen initially to the JSON range. Will fix it to a different value. > - 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)? We would still need to have a trusted scheme to make sure there is no additional tracking information in there wouldn’t we? I don’t think we can easily fully solve that problem without some sort of alignment on a credential scheme for a specific type / a registry of schemes of some sort? I am probably a bit biased here with my work in the context of eIDAS where we are expecting credential rulebooks to be defined and published (that define the scheme among other things). Happy to discuss and figure out if we can find a better/easier solution! Best Regards, Christian > On 29. Sep 2026, at 13:07, Emil Lundberg <[email protected]> > wrote: > > 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]
_______________________________________________ jose mailing list -- [email protected] To unsubscribe send an email to [email protected]
