Commit 4991998
committed
test: DIP consumer tests (#611)
Partially fixes https://github.com/KILTprotocol/ticket/issues/2562.
Adds unit tests for the verifier components (components tested are shown
in the checklist below).
It also splits up the proof verification logic into multiple files,
split by when those checks are performed. Check the
`crates/kilt-dip-primitives/src/merkle/v0/` folder for more details. It
addresses an open comment in the DIP refactoring PR:
#602 (comment).
## Elements to add tests for
- [x] `pallet-dip-consumer`
- [x] `pallet-relay-store`
- [x] `ProofVerifier`
- [x] Merge #612
- [x] Merge #6131 parent 2bb8c93 commit 4991998
File tree
60 files changed
+5790
-2469
lines changed- crates/kilt-dip-primitives
- src
- merkle_proofs
- v0
- dip_subject_state
- provider_state
- relay_state
- merkle
- state_proofs
- verifier
- parachain
- v0
- relaychain
- v0
- dip-template/runtimes
- dip-consumer
- src
- dip-provider/src
- pallets
- did/src
- pallet-deposit-storage/src
- pallet-dip-consumer
- src
- tests
- pallet-dip-provider/src
- pallet-migration/src
- pallet-relay-store
- src
- tests
- public-credentials/src
- runtimes/common/src
- dip
- did
- merkle/v0
- tests
- support/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+5790
-2469
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
| 80 | + | |
77 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
0 commit comments