Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
DST
interopehrate
camenisch-lysyanskaya
Commits
a569ec54
Commit
a569ec54
authored
Nov 10, 2016
by
Gijs Van Laer
Browse files
change readme for proof of commitment
parent
20067dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
README.md
README.md
+4
-2
No files found.
README.md
View file @
a569ec54
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment