-
Notifications
You must be signed in to change notification settings - Fork 204
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
refactor(proofs)!: make nonce optional and add missing exports #1073
refactor(proofs)!: make nonce optional and add missing exports #1073
Conversation
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #1073 +/- ##
==========================================
+ Coverage 88.22% 88.25% +0.03%
==========================================
Files 679 685 +6
Lines 15901 15918 +17
Branches 2571 2571
==========================================
+ Hits 14028 14049 +21
+ Misses 1865 1862 -3
+ Partials 8 7 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Discussed in AFJ WG call 27-10: make nonce optional in proof request, and generate it if not present in the indy proof format service. |
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
d11a692
to
7f54248
Compare
So I've finally converted this PR from a mere 'expose types PR' (the ones that @blu3beri likes the most 😛 ) to a refactoring that impacts three modules 😅. Not completely sure about the naming conventions I've selected, but happy to hear any feedback about it! |
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
…-framework-javascript into fix/proofs-exports
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
…ame and version also optional Signed-off-by: Ariel Gentile <gentilester@gmail.com>
Some refactoring to solve minor issues found during migration to 0.3.0 on AATH:
generateNonce
method. This is the same behaviour we had in 0.2.xgenerateProofRequestNonce
method fromV1ProofService
andProofService
as it is Indy/AnonCreds-specific. It will call directly wallet'sgenerateNonce
methodAfter @TimoGlastra's precise and appropriate suggestion, I moved logic from
IndyProofUtils
toIndyProofFormatService
, resulting in a cleanerV2ProofService
(less Indy-specific stuff there).It's marked as breaking change mainly because of the renaming of some types and interfaces. However it does not change any field besides the aforementioned 'nonce'.
Signed-off-by: Ariel Gentile gentilester@gmail.com