Skip to content

Commit

Permalink
Support the CheckMetadataHash signed extension (#1603)
Browse files Browse the repository at this point in the history
* bump api-client to a fork supporting the `CheckMetadataHash` signed extension

* [local-setup] update integritee-node cli args for v1.13.0

* update docker image for integritee-node in CI

* [docker] fix integritee node default tag and flags
  • Loading branch information
clangenb committed Jun 28, 2024
1 parent 9059ce8 commit a1709f2
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 44 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ jobs:
integration-tests:
runs-on: ${{ matrix.host }}
if: ${{ always() }}
needs: [build-test, build-client]
needs: [ build-test, build-client ]
env:
WORKER_IMAGE_TAG: integritee-worker:dev
CLIENT_IMAGE_TAG: integritee-cli:dev
Expand Down Expand Up @@ -290,11 +290,11 @@ jobs:
demo_name: demo-shielding-unshielding-multiworker
host: test-runner-sgx
sgx_mode: HW
# - test: Teeracle
# flavor_id: teeracle
# demo_name: demo-teeracle
# host: test-runner-sgx
# sgx_mode: HW
# - test: Teeracle
# flavor_id: teeracle
# demo_name: demo-teeracle
# host: test-runner-sgx
# sgx_mode: HW
- test: Teeracle
flavor_id: teeracle
demo_name: demo-teeracle-generic
Expand Down Expand Up @@ -323,7 +323,7 @@ jobs:
echo "PROJECT=${{ matrix.flavor_id }}-${{ matrix.demo_name }}" >> $GITHUB_ENV
echo "VERSION=dev.$version" >> $GITHUB_ENV
echo "WORKER_IMAGE_TAG=integritee-worker:dev.$version" >> $GITHUB_ENV
echo "INTEGRITEE_NODE=integritee-node:1.1.6.$version" >> $GITHUB_ENV
echo "INTEGRITEE_NODE=integritee-node:1.13.0.$version" >> $GITHUB_ENV
echo "CLIENT_IMAGE_TAG=integritee-cli:dev.$version" >> $GITHUB_ENV
if [[ ${{ matrix.sgx_mode }} == 'HW' ]]; then
echo "SGX_PROVISION=/dev/sgx/provision" >> $GITHUB_ENV
Expand Down Expand Up @@ -368,8 +368,8 @@ jobs:
fi
docker tag integritee-worker-${{ env.IMAGE_SUFFIX }} ${{ env.WORKER_IMAGE_TAG }}
docker tag integritee-cli-client-${{ env.IMAGE_SUFFIX }} ${{ env.CLIENT_IMAGE_TAG }}
docker pull integritee/integritee-node:1.1.6
docker tag integritee/integritee-node:1.1.6 ${{ env.INTEGRITEE_NODE }}
docker pull integritee/integritee-node:1.13.0
docker tag integritee/integritee-node:1.13.0 ${{ env.INTEGRITEE_NODE }}
docker images --all
##
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
[[package]]
name = "ac-compose-macros"
version = "0.4.2"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-primitives",
"log 0.4.20",
Expand All @@ -25,7 +25,7 @@ dependencies = [
[[package]]
name = "ac-node-api"
version = "0.5.1"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-primitives",
"bitvec",
Expand All @@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "ac-primitives"
version = "0.9.0"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"frame-system",
"impl-serde",
Expand Down Expand Up @@ -7709,7 +7709,7 @@ dependencies = [
[[package]]
name = "substrate-api-client"
version = "0.14.0"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-compose-macros",
"ac-node-api",
Expand Down Expand Up @@ -7747,7 +7747,7 @@ dependencies = [
[[package]]
name = "substrate-client-keystore"
version = "0.9.1"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"array-bytes 4.2.0",
"async-trait",
Expand Down
2 changes: 1 addition & 1 deletion app-libs/parentchain-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
log = { version = "0.4", default-features = false }
regex = { optional = true, version = "1.9.5" }

substrate-api-client = { optional = true, default-features = false, features = ["std", "sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { optional = true, default-features = false, features = ["std", "sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

# substrate dep
sp-core = { default-features = false, features = ["full_crypto"], git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
Expand Down
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ teeracle-primitives = { git = "https://github.com/integritee-network/pallets.git

# `default-features = false` to remove the jsonrpsee dependency.
# disable unsupported jsonrpcsee
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-client-keystore = { git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }
substrate-client-keystore = { git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

# substrate dependencies
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/extrinsics-factory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
# sgx dependencies
sgx_tstd = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true }
sgx_types = { branch = "master", git = "https://github.com/apache/teaclave-sgx-sdk.git" }
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

# local dependencies
itp-node-api = { path = "../node-api", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/node-api/api-client-extensions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "po

# scs
# `default-features = false` to remove the jsonrpsee dependency.
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

# local deps
itp-api-client-types = { path = "../api-client-types" }
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/node-api/api-client-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
itp-types = { default-features = false, path = "../../types" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ itp-stf-primitives = { path = "../../core-primitives/stf-primitives", default-fe
itp-utils = { path = "../../core-primitives/utils", default-features = false }

# scs
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }

# substrate-deps
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
"integritee-node-${VERSION}":
image: "${INTEGRITEE_NODE:-integritee/integritee-node:1.1.6}"
image: "${INTEGRITEE_NODE:-integritee/integritee-node:1.13.0}"
hostname: integritee-node
devices:
- "${SGX_PROVISION:-/dev/null}:/dev/sgx/provision"
Expand All @@ -15,7 +15,7 @@ services:
interval: 10s
timeout: 10s
retries: 6
command: -lruntime=info -lteerex=debug --dev --rpc-methods unsafe --ws-external --rpc-external --ws-port 9912
command: -lruntime=info -lteerex=debug --dev --rpc-methods unsafe --rpc-external --rpc-port 9912
#logging:
#driver: local
"integritee-worker-1-${VERSION}":
Expand Down
8 changes: 4 additions & 4 deletions enclave-runtime/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
[[package]]
name = "ac-compose-macros"
version = "0.4.2"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-primitives",
"log",
Expand All @@ -25,7 +25,7 @@ dependencies = [
[[package]]
name = "ac-node-api"
version = "0.5.1"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-primitives",
"bitvec",
Expand All @@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "ac-primitives"
version = "0.9.0"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"impl-serde",
"parity-scale-codec",
Expand Down Expand Up @@ -4404,7 +4404,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "substrate-api-client"
version = "0.14.0"
source = "git+https://github.com/brenzi/substrate-api-client.git?branch=polkadot-v0.9.42-tag-v0.14.0-retracted#d01bc07fe0c8a8db1451d0d5c8bf82493b274d80"
source = "git+https://github.com/encointer/substrate-api-client.git?branch=v0.9.42-tag-v0.14.0-retracted-check-metadata-hash#eddca35c73b5e2e3d0371fa923a0ba605c2f0d61"
dependencies = [
"ac-compose-macros",
"ac-node-api",
Expand Down
5 changes: 1 addition & 4 deletions local-setup/config/benchmark.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
"--dev",
"-lruntime=info",
"-lteerex=debug",
"--ws-port",
"9944",
"--port",
"30390",
"--rpc-port",
"9933",
"--ws-external",
"9944",
"--rpc-external"
]
}
Expand Down
5 changes: 1 addition & 4 deletions local-setup/config/one-worker.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
"--dev",
"-lruntime=info",
"-lteerex=debug",
"--ws-port",
"9944",
"--port",
"30390",
"--rpc-port",
"9933",
"--ws-external",
"9944",
"--rpc-external"
]
}
Expand Down
5 changes: 1 addition & 4 deletions local-setup/config/three-nodes-one-worker.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
"--dev",
"-lruntime=info",
"-lteerex=debug",
"--ws-port",
"9944",
"--port",
"30390",
"--rpc-port",
"9933",
"--ws-external",
"9944",
"--rpc-external"
]
},
Expand Down
5 changes: 1 addition & 4 deletions local-setup/config/two-workers.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
"--dev",
"-lruntime=info",
"-lteerex=debug",
"--ws-port",
"9944",
"--port",
"30390",
"--rpc-port",
"9933",
"--ws-external",
"9944",
"--rpc-external"
]
}
Expand Down
2 changes: 1 addition & 1 deletion service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sgx-verify = { git = "https://github.com/integritee-network/pallets.git", branch
# `default-features = false` to remove the jsonrpsee dependency.
enclave-bridge-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "sdk-v0.13.0-polkadot-v0.9.42" }
# disable unsupported jsonrpcsee
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/brenzi/substrate-api-client.git", branch = "polkadot-v0.9.42-tag-v0.14.0-retracted" }
substrate-api-client = { default-features = false, features = ["std", "sync-api"], git = "https://github.com/encointer/substrate-api-client.git", branch = "v0.9.42-tag-v0.14.0-retracted-check-metadata-hash" }
teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "sdk-v0.13.0-polkadot-v0.9.42" }

# Substrate dependencies
Expand Down

0 comments on commit a1709f2

Please sign in to comment.