decentralized-identity / bbs-signature

The BBS Signature Scheme
https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html
Apache License 2.0
79 stars 26 forks source link

ascii and utf8 #207

Closed BasileiosKal closed 2 years ago

BasileiosKal commented 2 years ago

I don't think we are consistent about this. For example we define utf8 as accepting only ascii strings and we don't handle non ascii strings in encode_for_hash, even though we have an utf8 encoding. Also, I think "ASCII character sequence" is what we meant as "ascii string" but is not everywhere clear.

Not sure what is best here. Should we assume that all the messages are already an octet string (and just mention some ways for transforming a char sequence to octets)?? So the only think that is left is DST's that we can encode with utf8??

I think this is what most crypto specs do, so i would go with that.

BasileiosKal commented 2 years ago

Discussed on the WG call of 22nd of August. Will open PR in the described direction + handling Unicode in encode_for_hash.