mattrglobal / bls12381-jwk-draft

https://datatracker.ietf.org/doc/draft-denhartog-pairing-curves-jose-cose/
0 stars 0 forks source link

Bls-G1G2 keys? #6

Open andrewwhitehead opened 3 years ago

andrewwhitehead commented 3 years ago

Should this also be defined? The x attribute would just be the G1 and G2 public keys, concatenated. This key type is already supported by multicodec, for instance.

kdenhartog commented 3 years ago

Hmm, not sure about this one. Where do we use it? I'm open to it if there's good reason, but would like to keep things as closely aligned to pairing friendly curves if possible.

andrewwhitehead commented 3 years ago

It's simply a representation for when you don't want to be limited to just the G1 or G2 public key. You could put both into a keyset, but then it's less obvious that they're related. Here's the multicodec entry: https://github.com/multiformats/multicodec/blob/master/table.csv#L86