Commit 9a98ab5f authored by Gijs Van Laer's avatar Gijs Van Laer
Browse files

update readme

parent e62461f2
......@@ -34,6 +34,18 @@ Sign:
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);
```
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);
```
Verify:
```java
CLSign.verify(messages, sigma, keyPair.getPk());
......
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