Skip to content

Commit

Permalink
ATL-6027: seperate anoncred test
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoKnightIOG committed Mar 12, 2024
1 parent aab21a0 commit ccccbc0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
Feature: Present Proof Protocol

Scenario: Holder presents anoncreds credential proof to verifier
Given Issuer and Holder have an existing connection
And Verifier and Holder have an existing connection
And Issuer creates unpublished DID
And He publishes DID to ledger
And Holder creates unpublished DID
And Issuer creates anoncred schema
And Issuer creates anoncred credential definition
And Issuer offers anoncred to Holder
And Holder receives the credential offer
And Holder accepts credential offer for anoncred
And Issuer issues the credential
And Holder receives the issued credential
When Verifier sends a anoncreds request for proof presentation to Holder using credential definition issued by Issuer
And Holder receives the anoncreds request
And Holder accepts the anoncreds presentation request from Verifier
Scenario: Holder presents credential proof to verifier
Given Verifier and Holder have an existing connection
And Holder has an issued credential from Issuer
When Verifier sends a request for proof presentation to Holder
And Holder receives the request
And Holder makes the presentation of the proof to Verifier
Then Verifier has the proof verified

Scenario: Verifier rejects holder proof
Given Verifier and Holder have an existing connection
And Holder has an issued credential from Issuer
When Verifier sends a request for proof presentation to Holder
And Holder receives the request
And Holder rejects the proof
Then Holder sees the proof is rejected

Scenario: Holder presents proof to verifier which is the issuer itself
Given Issuer and Holder have an existing connection
And Holder has an issued credential from Issuer
When Issuer sends a request for proof presentation to Holder
And Holder receives the request
And Holder makes the presentation of the proof to Issuer
Then Issuer has the proof verified
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Feature: Present Proof Protocol

Scenario: Holder presents anoncreds credential proof to verifier
Given Issuer and Holder have an existing connection
And Verifier and Holder have an existing connection
And Issuer creates unpublished DID
And He publishes DID to ledger
And Holder creates unpublished DID
And Issuer creates anoncred schema
And Issuer creates anoncred credential definition
And Issuer offers anoncred to Holder
And Holder receives the credential offer
And Holder accepts credential offer for anoncred
And Issuer issues the credential
And Holder receives the issued credential
When Verifier sends a anoncreds request for proof presentation to Holder using credential definition issued by Issuer
And Holder receives the anoncreds request
And Holder accepts the anoncreds presentation request from Verifier
Then Verifier has the proof verified

0 comments on commit ccccbc0

Please sign in to comment.