tplooker / draft-ietf-cose-bls-key-representations

Internet Draft defining the key representation format for the barreto lynn scott elliptic curve
Other
0 stars 1 forks source link

Key identifier? #12

Open quartzjer opened 2 years ago

quartzjer commented 2 years ago

I'm posing this as a question and not a direct suggestion.

The key identifiers are specifically for only one subgroup (the G1 on Bls48581G1 for example) on the defined pairing curve, and in practice an implementation will use that single group identifier to first identify the pairing curve itself, caring only about the Bls48581 prefix. Would it make sense to add a separator character such as _, -, or + like in other JOSE/COSE identifiers?

In fact, one could argue that Bls48581 is technically the curve name and the group could be identified via a separate element, but that's being rather pedantic :)

tplooker commented 2 years ago

The key identifiers are specifically for only one subgroup (the G1 on Bls48581G1 for example) on the defined pairing curve, and in practice an implementation will use that single group identifier to first identify the pairing curve itself, caring only about the Bls48581 prefix. Would it make sense to add a separator character such as _, -, or + like in other JOSE/COSE identifiers?

Yes this could be a good suggestion if we believe implementations will benefit from being able to partially parse the crv value to know the underlying curve involved is and then further process OR use another field to establish what sub-group is being used. Im unsure however how common that behaviour may be?