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

feat: replace XCM with state proofs #543

Merged
merged 33 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
54a23a5
Refactor pallet-dip-provider
ntn-x2 Jul 11, 2023
25b3cb6
Remove unused dependencies from pallet-dip-provider
ntn-x2 Jul 11, 2023
c7ef216
mIntroduce state proofs in pallet-dip-consumer
ntn-x2 Jul 11, 2023
06de832
Temporarly fix kilt-dip-support to compile
ntn-x2 Jul 11, 2023
dda48d6
Whole project compiling
ntn-x2 Jul 11, 2023
cfe1fb3
Add parachain root state proof verifier
ntn-x2 Jul 12, 2023
77b2a48
Proof of storage entry for parachain also working
ntn-x2 Jul 12, 2023
4fd3f06
Half-way
ntn-x2 Jul 12, 2023
a9ca939
Before replacing 'read_proof_check'
ntn-x2 Jul 13, 2023
81ea88c
Ported the proof verification for no_std
ntn-x2 Jul 13, 2023
e8919f1
Refactoring on the way
ntn-x2 Jul 13, 2023
8808f14
New overarching verifier
ntn-x2 Jul 13, 2023
16b1bc9
Whole workspace compiling (not run/tested yet)
ntn-x2 Jul 13, 2023
47481e0
Keep track of the last 2 relay state roots to allow for proof creation
ntn-x2 Jul 14, 2023
50edc7b
Compiles
ntn-x2 Jul 17, 2023
f542428
Use relay block height instead of block hash
ntn-x2 Jul 18, 2023
318d765
Cleaning before kilt-dip-support
ntn-x2 Jul 20, 2023
7b67a57
On the way there
ntn-x2 Jul 20, 2023
d7dda64
Step n.2
ntn-x2 Jul 20, 2023
6b94cbf
all good
ntn-x2 Jul 21, 2023
622c046
Everything compiling
ntn-x2 Jul 21, 2023
2718f95
Still working
ntn-x2 Jul 21, 2023
f00cf33
Refactor complete
ntn-x2 Jul 21, 2023
f91693d
Pallet updated
ntn-x2 Jul 21, 2023
d81ac18
Renaming
ntn-x2 Jul 21, 2023
22b577c
Change SignedExtra to not be Optional
ntn-x2 Jul 21, 2023
358c095
clippy
ntn-x2 Jul 21, 2023
6020f80
Remove unnecessary derive
ntn-x2 Jul 21, 2023
408f5b9
Remove XCM from templates
ntn-x2 Jul 21, 2023
4dfc7a3
Remove unwanted file
ntn-x2 Jul 21, 2023
ff68537
Merge branch 'aa/dip' into aa/state-proofs
ntn-x2 Aug 10, 2023
9cbbd54
feat: add support for relay chain (#553)
ntn-x2 Aug 23, 2023
9d36356
feat: add relaychain support (#563)
ntn-x2 Sep 20, 2023
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
65 changes: 37 additions & 28 deletions Cargo.lock

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

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ version = "1.12.0-dev"
members = [
"crates/*",
"dip-template/nodes/*",
"dip-template/pallets/*",
"dip-template/runtimes/*",
"nodes/*",
"pallets/*",
Expand All @@ -35,13 +36,14 @@ clap = "4.1.6"
env_logger = "0.10.0"
fluent-uri = { version = "0.1.4", default-features = false }
futures = {version = "0.3.21", default-features = false}
hash-db = { version = "0.16.0", default-features = false }
hex = {version = "0.4.0", default-features = false}
hex-literal = "0.3.4"
jsonrpsee = "0.16.2"
libsecp256k1 = {version = "0.7", default-features = false}
log = "0.4.17"
parity-scale-codec = {version = "3.1.5", default-features = false}
scale-info = {version = "2.1.1", default-features = false}
scale-info = {version = "2.7.0", default-features = false}
serde = "1.0.144"
serde_json = "1.0.85"
sha3 = {version = "0.10.0", default-features = false}
Expand All @@ -57,12 +59,12 @@ pallet-dip-consumer = {path = "pallets/pallet-dip-consumer", default-features =
pallet-dip-provider = {path = "pallets/pallet-dip-provider", default-features = false}
pallet-did-lookup = {path = "pallets/pallet-did-lookup", default-features = false}
pallet-inflation = {path = "pallets/pallet-inflation", default-features = false}
pallet-relay-store = {path = "pallets/pallet-relay-store", default-features = false}
pallet-web3-names = {path = "pallets/pallet-web3-names", default-features = false}
parachain-staking = {path = "pallets/parachain-staking", default-features = false}
public-credentials = {path = "pallets/public-credentials", default-features = false}

# Internal support (with default disabled)
dip-support = {path = "crates/dip-support", default-features = false}
kilt-asset-dids = {path = "crates/assets", default-features = false}
kilt-dip-support = {path = "crates/kilt-dip-support", default-features = false}
kilt-support = {path = "support", default-features = false}
Expand All @@ -71,6 +73,7 @@ runtime-common = {path = "runtimes/common", default-features = false}
# Templates
dip-consumer-runtime-template = {path = "dip-template/runtimes/dip-consumer", default-features = false}
dip-provider-runtime-template = {path = "dip-template/runtimes/dip-provider", default-features = false}
pallet-postit = {path = "dip-template/pallets/pallet-postit", default-features = false}

# Internal runtime API (with default disabled)
kilt-runtime-api-did = {path = "runtime-api/did", default-features = false}
Expand Down Expand Up @@ -138,6 +141,7 @@ sp-offchain = {git = "https://github.com/paritytech/substrate", default-features
sp-runtime = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-session = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-staking = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-state-machine = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-std = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-transaction-pool = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
sp-trie = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43"}
Expand Down
31 changes: 25 additions & 6 deletions crates/kilt-dip-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ repository.workspace = true
version.workspace = true

[dependencies]
# External dependencies
hash-db.workspace = true

# Internal dependencies
did.workspace = true
dip-support.workspace = true
pallet-dip-consumer.workspace = true
pallet-dip-provider.workspace = true
pallet-relay-store.workspace = true

# Parity dependencies
parity-scale-codec = {workspace = true, features = ["derive"]}
Expand All @@ -26,31 +29,47 @@ frame-system.workspace = true
frame-support.workspace = true
sp-runtime.workspace = true
sp-core.workspace = true
sp-trie.workspace = true
sp-io.workspace = true
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

[dev-dependencies]
hex-literal.workspace = true
sp-io = { workspace = true, features = ["std"] }

[features]
default = ["std"]
std = [
"hash-db/std",
"did/std",
"dip-support/std",
"pallet-dip-consumer/std",
"pallet-dip-provider/std",
"pallet-relay-store/std",
"parity-scale-codec/std",
"scale-info/std",
"frame-system/std",
"frame-support/std",
"sp-runtime/std",
"sp-core/std",
"sp-trie/std",
"sp-io/std",
"sp-state-machine/std",
"sp-std/std",
"sp-trie/std",
"rococo-runtime/std",
"xcm/std",
"xcm-executor/std",
"xcm/std"
"cumulus-pallet-parachain-system/std",
]
runtime-benchmarks = [
"pallet-dip-consumer/runtime-benchmarks"
"pallet-dip-consumer/runtime-benchmarks",
"rococo-runtime/runtime-benchmarks"
]
Loading