-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🍱 Add contracts locally in place of a submodule
- Loading branch information
Showing
16 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Scenario coconut: aggregate petition signature | ||
Given that I have a valid 'petition signature' | ||
and I have a valid 'petition' | ||
and I have a valid 'verifiers' | ||
When the petition signature is not a duplicate | ||
and the petition signature is just one more | ||
and I add the signature to the petition | ||
Then print the 'petition' | ||
and print the 'verifiers' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Scenario coconut: aggregate signature | ||
Given that I am known as 'Alice' | ||
and I have my valid 'credential keypair' | ||
and I have a valid 'credential signature' | ||
When I create the credentials | ||
Then print my 'credentials' | ||
and print my 'credential keypair' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Scenario coconut: approve petition | ||
Given that I have a valid 'verifier' from 'MadHatter' | ||
and I have a valid 'credential proof' | ||
and I have a valid 'petition' | ||
When I aggregate the verifiers | ||
and I verify the credential proof | ||
and I verify the new petition to be empty | ||
Then print the 'petition' | ||
and print the 'verifiers' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Scenario coconut: count petition | ||
Given that I have a valid 'petition' | ||
and I have a valid 'petition tally' | ||
When I count the petition results | ||
Then print the 'results' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Scenario coconut: create petition | ||
Given that I am known as 'Alice' | ||
and I have my valid 'credential keypair' | ||
and I have my valid 'credentials' | ||
and I have a valid 'verifier' from 'MadHatter' | ||
When I aggregate the verifiers | ||
and I create the credential proof | ||
and I create the petition 'poll' | ||
Then print all data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Scenario coconut: create proof | ||
Given that I am known as 'Alice' | ||
and I have my valid 'credential keypair' | ||
and I have a valid 'verifier' from 'MadHatter' | ||
and I have my valid 'credentials' | ||
When I aggregate the verifiers | ||
and I create the credential proof | ||
Then print the 'credential proof' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Scenario coconut: create request | ||
Given that I am known as 'Alice' | ||
and I have my valid 'credential keypair' | ||
When I create the credential request | ||
Then print my 'credential request' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Scenario coconut: credential keygen | ||
Given that I am known as 'Alice' | ||
When I create the credential keypair | ||
Then print my 'credential keypair' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Scenario coconut: issuer keygen | ||
Given that I am known as 'MadHatter' | ||
When I create the issuer keypair | ||
Then print my 'issuer keypair' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Scenario coconut: issuer sign | ||
Given that I am known as 'MadHatter' | ||
and I have my valid 'issuer keypair' | ||
and I have a valid 'credential request' | ||
When I create the credential signature | ||
Then print the 'credential signature' | ||
and print the 'verifier' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Scenario coconut: publish verifier | ||
Given that I am known as 'MadHatter' | ||
and I have my valid 'verifier' | ||
Then print my 'verifier' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Scenario coconut: sign petition | ||
Given I am 'Alice' | ||
and I have my valid 'credential keypair' | ||
and I have a valid 'credentials' | ||
and I have a valid 'verifier' from 'MadHatter' | ||
When I aggregate the verifiers | ||
and I create the petition signature 'poll' | ||
Then print the 'petition signature' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Scenario coconut: tally petition | ||
Given that I am 'Alice' | ||
and I have my valid 'credential keypair' | ||
and I have a valid 'petition' | ||
When I create a petition tally | ||
Then print all data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Scenario coconut: verify proof | ||
Given that I have a valid 'verifier' from 'MadHatter' | ||
and I have a valid 'credential proof' | ||
When I aggregate the verifiers | ||
and I verify the credential proof | ||
Then print 'Success' 'OK' as 'string' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters