asonnino / coconut

Coconut: Threshold Issuance Selective Disclosure Credentials with Applications to Distributed Ledgers.
https://arxiv.org/abs/1802.07344
Apache License 2.0
60 stars 14 forks source link

I suspect g1 and h1 should be different. #1

Closed gdanezis closed 6 years ago

gdanezis commented 6 years ago

Furthemore, they should have an unknown representation with respect to each other. So use a hash-to-point to get h1 = hash("some fixed string").

https://github.com/asonnino/coconut/blob/44d20b98e1de98e31b931c495f4462374ca6060e/coconut/lib.py#L14-L15

asonnino commented 6 years ago

Yes this was for testing at the beginning, I am implementing now the multi-messages scheme and then replacing that line with this: hs = [G.hashG1(("h%s" % i).encode("utf8")) for i in range(q)]