Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ZKP verification #792

Merged
merged 12 commits into from
Feb 28, 2024
Merged

feat: ZKP verification #792

merged 12 commits into from
Feb 28, 2024

Conversation

CryptoKnightIOG
Copy link
Contributor

@CryptoKnightIOG CryptoKnightIOG commented Nov 18, 2023

Overview

Fixes https://input-output.atlassian.net/browse/ATL-5944

Checklist

My PR contains...

  • No code changes (changes to documentation, CI, metadata, etc.)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes
  • are not breaking changes
  • If yes to above: I have updated the documentation accordingly

Documentation

  • My changes do not require a change to the project documentation
  • My changes require a change to the project documentation
  • If yes to above: I have updated the documentation accordingly

Tests

  • My changes can not or do not need to be tested
  • My changes can and should be tested by unit and/or integration tests
  • If yes to above: I have added tests to cover my changes
  • If yes to above: I have taken care to cover edge cases in my tests

Copy link
Contributor

github-actions bot commented Nov 18, 2023

Integration Test Results

12 files  ±0  12 suites  ±0   2s ⏱️ ±0s
25 tests ±0  25 ✅ ±0  0 💤 ±0  0 ❌ ±0 
26 runs  ±0  26 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 94b0277. ± Comparison against base commit 1c6d894.

♻️ This comment has been updated with latest results.

Copy link
Contributor

Atala PRISM Test Results

  87 files  +  2    87 suites  +2   21m 28s ⏱️ -5s
722 tests +10  714 ✔️ +10  8 💤 ±0  0 ±0 
728 runs  +10  720 ✔️ +10  8 💤 ±0  0 ±0 

Results for commit 7e18b6a. ± Comparison against base commit 9a6e512.

This pull request removes 12 and adds 22 tests. Note that renamed tests count towards both.
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptPresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptProposePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentatinRecord JWT
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - markPresentationRejected updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receivePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receiveProposePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receiveRequestPresentation updates the RequestPresentation in PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - rejectPresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - rejectRequestPresentation updates the PresentatinRecord
…
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptPresentation updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptProposePresentation updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation should fail given unmatching format
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentationRecord AnonCreds
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentationRecord JWT
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid Anoncred PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid JWT PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - markPresentationRejected updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receivePresentation updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receiveProposePresentation updates the PresentationRecord
…

Copy link
Contributor

github-actions bot commented Nov 20, 2023

Unit Test Results

 88 files  + 2   88 suites  +2   19m 28s ⏱️ -23s
746 tests +12  738 ✅ +12  8 💤 ±0  0 ❌ ±0 
753 runs  +14  745 ✅ +14  8 💤 ±0  0 ❌ ±0 

Results for commit 94b0277. ± Comparison against base commit 1c6d894.

This pull request removes 13 and adds 25 tests. Note that renamed tests count towards both.
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptPresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptProposePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentatinRecord JWT
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationPayloadFromRecord returns jwt prsentation payload
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - markPresentationRejected updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receivePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receiveProposePresentation updates the PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - receiveRequestPresentation updates the RequestPresentation in PresentatinRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - rejectPresentation updates the PresentatinRecord
…
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptPresentation updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptProposePresentation updates the PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation should fail given unmatching format
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentationRecord AnonCreds
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - acceptRequestPresentation updates the PresentationRecord JWT
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createAnoncredPresentationPayloadFromRecord returns Anoncred presentation payload
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createJwtPresentationPayloadFromRecord returns jwt presentation payload
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid Anoncred PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - createPresentationRecord creates a valid JWT PresentationRecord
io.iohk.atala.pollux.core.service.PresentationServiceSpec ‑ PresentationService - singleWalletSpec - markPresentationRejected updates the PresentationRecord
…

♻️ This comment has been updated with latest results.

Copy link
Member

@yshyn-iohk yshyn-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @CryptoKnightIOG! You can merge this PR, but I have some concerns about how the tables are being extended for the present proof protocol with specific fields for anoncreds.
Would be nice to discuss this at AoH meeting.
CC: @bvoiturier

@ghost
Copy link

ghost commented Jan 25, 2024

@CryptoKnightIOG - could you drop an update on this PR for if we plan to move forward with it or abandon it? Thanks!

@CryptoKnightIOG CryptoKnightIOG changed the title Feat: ZKP verification feat: ZKP verification Jan 30, 2024
Copy link

sonarcloud bot commented Feb 28, 2024

Quality Gate Passed Quality Gate passed

Issues
42 New issues

Measures
0 Security Hotspots
No data about Coverage
2.2% Duplication on New Code

See analysis details on SonarCloud

@CryptoKnightIOG CryptoKnightIOG merged commit ab1ab64 into main Feb 28, 2024
18 checks passed
@CryptoKnightIOG CryptoKnightIOG deleted the feat/ZKP-verification branch February 28, 2024 03:41
atala-dev added a commit that referenced this pull request Feb 28, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
mkbreuningIOHK pushed a commit that referenced this pull request Mar 1, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: MICHAEL BREUNINGER <[email protected]>
mkbreuningIOHK pushed a commit that referenced this pull request Mar 1, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: MICHAEL BREUNINGER <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 6, 2024
Signed-off-by: Bassam Riman <[email protected]>
Signed-off-by: Benjamin Voiturier <[email protected]>
Co-authored-by: bvoiturier <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 6, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 6, 2024
Signed-off-by: Bassam Riman <[email protected]>
Signed-off-by: Benjamin Voiturier <[email protected]>
Co-authored-by: bvoiturier <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 6, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
Signed-off-by: Bassam Riman <[email protected]>
Signed-off-by: Benjamin Voiturier <[email protected]>
Co-authored-by: bvoiturier <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
Signed-off-by: Bassam Riman <[email protected]>
Signed-off-by: Benjamin Voiturier <[email protected]>
Co-authored-by: bvoiturier <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
Signed-off-by: Bassam Riman <[email protected]>
Signed-off-by: Benjamin Voiturier <[email protected]>
Co-authored-by: bvoiturier <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
shotexa pushed a commit that referenced this pull request Mar 18, 2024
# [1.29.0](prism-agent-v1.28.0...prism-agent-v1.29.0) (2024-02-28)

### Bug Fixes

* correct the config environment variable name ([#905](#905)) ([d86436c](d86436c))

### Features

* ZKP verification ([#792](#792)) ([ab1ab64](ab1ab64))

Signed-off-by: Anton Baliasnikov <[email protected]>
Signed-off-by: Shota Jolbordi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants