Commit a569ec54 authored by Gijs Van Laer's avatar Gijs Van Laer
Browse files

change readme for proof of commitment

parent 20067dc9
......@@ -37,13 +37,15 @@ final Signature sigma = CLSign.sign(messages, keyPair);
Sign Blind:
```java
final Element commitment = CLSign.commit(messages, keyPair.getPk());
final Signature sigma = CLSign.signBlind(commitment, keyPair);
final Proof proof = CLSign.proofCommitment(partialCommitment, messages, keyPair.getPk());
final Signature sigma = CLSign.signBlind(commitment, proof, keyPair);
```
Sign Partially Blind:
```java
final Element partialCommitment = CLSign.partialCommit(messages.subList(0, messageSize - 2), keyPair.getPk());
final Signature sigma = CLSign.signPartiallyBlind(messages.subList(messageSize - 2, messageSize), partialCommitment, keyPair);
final Proof proof = CLSign.proofCommitment(partialCommitment, messages.subList(0, messageSize - 2), keyPair.getPk());
final Signature sigma = CLSign.signPartiallyBlind(messages.subList(messageSize - 2, messageSize), partialCommitment, proof, keyPair);
```
Verify:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment