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

test: DIP consumer tests #611

Merged
merged 40 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
85869ea
pallet-dip-consumer unit tests complete
ntn-x2 Feb 23, 2024
96939f9
pallet-relay-store unit tests complete
ntn-x2 Feb 23, 2024
4063a80
Fix build error for pallet-relay-store
ntn-x2 Feb 26, 2024
d34c2ce
unit tests for error u8 and u16 values
ntn-x2 Feb 26, 2024
5dba834
split Verifier components
ntn-x2 Feb 26, 2024
bcf3c84
Restructure Merkle verification types
ntn-x2 Feb 26, 2024
7736cab
Add test stubs for proof verifier
ntn-x2 Feb 26, 2024
486fa84
Restructure verification components
ntn-x2 Feb 27, 2024
0dad2f0
relay_state unit tests
ntn-x2 Feb 27, 2024
5afafa4
Update test stubs names
ntn-x2 Feb 27, 2024
767f091
Add unit test case for invalid proof for relay_state
ntn-x2 Feb 27, 2024
3c2919f
Add unit tests for parachain_dip_did_proof
ntn-x2 Feb 27, 2024
48eb116
Unit tests for dip_revealed_details_and_unverified_did_signature comp…
ntn-x2 Feb 27, 2024
c6f3e55
Add unit tests for dip_subject_state
ntn-x2 Feb 27, 2024
41a1068
Complete unit tests for dip_did_proof_with_verified_relay_state_root
ntn-x2 Feb 28, 2024
e7f19cd
wip: unit tests for dip_did_proof_with_verified_subject_commitment
ntn-x2 Feb 28, 2024
b2690ac
dip_did_proof_with_verified_subject_commitment unit tests
ntn-x2 Feb 29, 2024
b5de12a
verify_proof_for_call_against_details_successful skeleton added
ntn-x2 Feb 29, 2024
18cab49
wip: full proof verifier unit tests
ntn-x2 Feb 29, 2024
674628f
Add missing unit test for pallet-dip-consumer
ntn-x2 Feb 29, 2024
b07065b
Parachain verifier v0 unit tests complete
ntn-x2 Mar 1, 2024
e2f5cdf
Add unit tests for utility functons
ntn-x2 Mar 1, 2024
6d0f81c
Refactor util functions unit tests
ntn-x2 Mar 1, 2024
b8939ce
Minor changes
ntn-x2 Mar 1, 2024
e09f1f1
Fix Default bounds for test functions
ntn-x2 Mar 1, 2024
0139011
Fix bug and new test added
ntn-x2 Mar 4, 2024
e9f7010
Add wrong key in test case to test for filtering logic
ntn-x2 Mar 4, 2024
ef42867
Rename leaf revelation function
ntn-x2 Mar 4, 2024
137bbde
Fix compilation issues
ntn-x2 Mar 4, 2024
a38b83a
Explicit Vec type
ntn-x2 Mar 6, 2024
30c8ec2
Remove explicit params
ntn-x2 Mar 6, 2024
29738f0
Refactor test case input
ntn-x2 Mar 6, 2024
e19e280
Remove TODO
ntn-x2 Mar 6, 2024
8359657
Refactor test functions
ntn-x2 Mar 6, 2024
740c79d
Add constants for errors
ntn-x2 Mar 6, 2024
c3cf3a2
Add get_ to test functions
ntn-x2 Mar 7, 2024
7eacbba
Use enum
ntn-x2 Mar 7, 2024
476c221
Rename merkle module
ntn-x2 Mar 7, 2024
4adad21
chore: improve benchmark logic (#612)
ntn-x2 Mar 28, 2024
3982a82
Merge branch 'develop' into aa/dip-consumer-tests
ntn-x2 Mar 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ base58 = {version = "0.2.0", default-features = false}
bitflags = {version = "1.3.2", default-features = false}
cfg-if = "1.0"
clap = "4.1.6"
enum-iterator = "2.0.0"
env_logger = "0.10.0"
fluent-uri = { version = "0.1.4", default-features = false }
futures = {version = "0.3.21", default-features = false}
Expand Down
5 changes: 5 additions & 0 deletions crates/kilt-dip-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ sp-trie.workspace = true
cumulus-primitives-core.workspace = true

[dev-dependencies]
cumulus-pallet-parachain-system = { workspace = true, features = ["std"] }
enum-iterator.workspace = true
hex-literal.workspace = true
peregrine-runtime = { workspace = true, features = ["std"] }
rococo-runtime = { workspace = true, features = ["std"] }
spiritnet-runtime = { workspace = true, features = ["std"] }
sp-io = { workspace = true, features = ["std"] }

[features]
Expand Down
Loading