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

chore: DIP improvements #602

Merged
merged 49 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
bddc86f
Unique leaf instead of key + value
ntn-x2 Jan 10, 2024
15253bc
Refactor merkle proof verification into single function
ntn-x2 Jan 10, 2024
555927f
More refactoring
ntn-x2 Jan 10, 2024
e142c8a
Refactor compiling
ntn-x2 Jan 11, 2024
470dd53
A lot of progress
ntn-x2 Jan 11, 2024
147ffbc
Compiling again
ntn-x2 Jan 11, 2024
b1b660d
Compiling again
ntn-x2 Jan 11, 2024
37ffe78
Wip
ntn-x2 Jan 11, 2024
bcdaa98
kilt-dip-primitives compiling
ntn-x2 Jan 12, 2024
dca9930
Kilt provider template compiling
ntn-x2 Jan 12, 2024
2f8e779
Consumer template compiling
ntn-x2 Jan 12, 2024
be28412
Whole project compiling
ntn-x2 Jan 12, 2024
91e9f46
New design in progress
ntn-x2 Jan 12, 2024
b5398d1
Refactor
ntn-x2 Jan 15, 2024
8c147c4
Compiling
ntn-x2 Jan 15, 2024
f62c0fc
The whole thing compiling
ntn-x2 Jan 15, 2024
582e2c1
Compiling again
ntn-x2 Jan 15, 2024
9b79d46
Removing bounds from proofs
ntn-x2 Jan 15, 2024
d6647a0
wip
ntn-x2 Jan 15, 2024
a03f576
Project compiling
ntn-x2 Jan 16, 2024
3c88ad5
Debug assertions
ntn-x2 Jan 16, 2024
cb5a4af
Merge commit 'b8a22b85fad24d88c2849f6430f8b6019522fd25' into aa/dip-i…
ntn-x2 Jan 16, 2024
cb6b385
Minor chores
ntn-x2 Jan 16, 2024
290f7cd
Before refactoring with runtime
ntn-x2 Jan 16, 2024
1c70fc4
COMPILING
ntn-x2 Jan 16, 2024
d266720
Comments addressed
ntn-x2 Jan 16, 2024
c59b30f
Staging changes
ntn-x2 Jan 17, 2024
82160d2
Primitives compiling again
ntn-x2 Jan 23, 2024
14e5a53
Runtime common compiling
ntn-x2 Jan 23, 2024
51d4570
Project compiling without benchmarking feature
ntn-x2 Jan 23, 2024
dc271c7
Project compiling with all features enabled
ntn-x2 Jan 23, 2024
a520335
Benchmarks passing for consumer template
ntn-x2 Jan 26, 2024
e4e853a
Remove benchmarks from verifier code
ntn-x2 Jan 26, 2024
86fbde5
Make relaychain same as parachain verifier
ntn-x2 Jan 26, 2024
9da230e
Add valid_unlid_until to signed payload
ntn-x2 Jan 31, 2024
7c9645a
Fix regression bug
ntn-x2 Feb 9, 2024
d63ee4a
Increase limits for Merkle proof leaves size
ntn-x2 Feb 9, 2024
20291a1
Add state proof verification function with custom decoder
ntn-x2 Feb 9, 2024
f20d24e
Refactor visibility of struct fields
ntn-x2 Feb 9, 2024
c02de70
Fix dependencies
ntn-x2 Feb 9, 2024
c5aa5a9
Rename intermediate structs
ntn-x2 Feb 9, 2024
a5e31e6
Merge branch 'develop' into aa/dip-improvements
ntn-x2 Feb 9, 2024
2219847
Merge branch 'develop' into aa/dip-improvements
ntn-x2 Feb 22, 2024
72fc3cb
Add comment about relaychain being Rococo
ntn-x2 Feb 22, 2024
51ac902
Add comments about 0 value
ntn-x2 Feb 22, 2024
aea6b93
Grammar fix
ntn-x2 Feb 22, 2024
e20c96d
Add copyright notice about Parity source code
ntn-x2 Feb 22, 2024
287116e
Fix benchmarking feature
ntn-x2 Feb 22, 2024
493fda8
Fix docs generation
ntn-x2 Feb 22, 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
21 changes: 1 addition & 20 deletions Cargo.lock

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

13 changes: 0 additions & 13 deletions crates/kilt-dip-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,8 @@ sp-state-machine.workspace = true
sp-std.workspace = true
sp-trie.workspace = true

# Polkadot dependencies
rococo-runtime.workspace = true
xcm.workspace = true
xcm-executor.workspace = true

# Cumulus dependencies
cumulus-pallet-parachain-system.workspace = true
cumulus-primitives-core.workspace = true
parachain-info.workspace = true

[dev-dependencies]
hex-literal.workspace = true
Expand Down Expand Up @@ -75,16 +68,10 @@ std = [
"sp-state-machine/std",
"sp-std/std",
"sp-trie/std",
"rococo-runtime/std",
"xcm/std",
"xcm-executor/std",
"cumulus-pallet-parachain-system/std",
"cumulus-primitives-core/std",
"parachain-info/std",
]
runtime-benchmarks = [
"kilt-support/runtime-benchmarks",
"pallet-dip-consumer/runtime-benchmarks",
"pallet-dip-provider/runtime-benchmarks",
"rococo-runtime/runtime-benchmarks"
]
223 changes: 0 additions & 223 deletions crates/kilt-dip-primitives/src/did.rs

This file was deleted.

12 changes: 8 additions & 4 deletions crates/kilt-dip-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@

#![cfg_attr(not(feature = "std"), no_std)]

pub mod did;
/// Module to deal with cross-chain Merkle proof as generated by the KILT chain.
pub mod merkle;
/// Module to deal with cross-chain state proofs.
pub mod state_proofs;
/// Collection of traits used throughout the crate and useful for both providers
/// and consumers.
pub mod traits;
pub mod utils;
/// Verifier module containing types that implement the verifier component to be
/// deployed both on a sibling parachain and on a parent relaychain.
pub mod verifier;

pub use state_proofs::relaychain::RelayStateRootsViaRelayStorePallet;
pub use traits::{FrameSystemDidSignatureContext, ProviderParachainStateInfoViaProviderPallet};
pub use utils::BoundedBlindedValue;
pub use merkle::latest::*;
pub use traits::RelayStateRootsViaRelayStorePallet;
pub use verifier::*;
Loading