Remove dependence of aries module on VcxStateType - #314
Conversation
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Codecov Report
@@ Coverage Diff @@
## master #314 +/- ##
==========================================
+ Coverage 49.72% 49.77% +0.04%
==========================================
Files 156 156
Lines 19634 19651 +17
Branches 6205 6199 -6
==========================================
+ Hits 9763 9781 +18
- Misses 5070 5074 +4
+ Partials 4801 4796 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
249b63e to
bda18f2
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
bda18f2 to
03cd4e5
Compare
|
@mirgee the failing tests seem to indicate that the state mapping is a bit off somewhere |
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
0287e2d to
838d8e6
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Patrik-Stas
left a comment
There was a problem hiding this comment.
Minor changes requested, overally love it! 👍
ff74561 to
0e2815b
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
0e2815b to
0fdbe5b
Compare
Patrik-Stas
left a comment
There was a problem hiding this comment.
I think it's important for readibility of the code consuming this wrapper to return Struct/Enums from TS function returning state representation (getState, updateState)
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
This PR adds new enums representing current state of
IssuerSM,HolderSM,ProverSMandVerifierSM:IssuerState,HolderState,ProverStateandVerifierStaterespectively. Functionget_state()returns variants of said enums on the internalarieslevel, and these are converted to numeric representations on the C-callable level.Wrapper now exports enums representing these states in place of
StateType:IssuerStateType,HolderStateType,VerifierStateType,IssuerStateType,ConnectionStateType.This is a breaking change, since the variant representations corresponding to the states returned by
get_state()function has changed, as well as the numeric representations. For the numeric values, see here, and for the changes toget_state()return values, see corresponding implementations for each of the concerned SMs.Signed-off-by: Miroslav Kovar miroslavkovar@protonmail.com