Skip to content

Commit

Permalink
testing sgx
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Nov 5, 2024
1 parent 896e4d2 commit 0c37357
Show file tree
Hide file tree
Showing 10 changed files with 176 additions and 59 deletions.
27 changes: 27 additions & 0 deletions config/l2_chain_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"chainId": 412346,
"homesteadBlock": 0,
"daoForkSupport": true,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"clique": { "period": 0, "epoch": 0 },
"arbitrum": {
"EnableArbOS": true,
"AllowDebugPrecompiles": true,
"DataAvailabilityCommittee": false,
"InitialArbOSVersion": 30,
"InitialChainOwner": "0x5E1497dD1f08C87b2d8FE23e9AAB6c1De833D927",
"GenesisBlockNum": 0,
"EnableEspresso": true
},
"espresso": true
}
79 changes: 79 additions & 0 deletions config/poster_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"parent-chain": { "connection": { "url": "ws://geth:8546" } },
"chain": { "id": 412346, "info-files": ["/config/l2_chain_info.json"] },
"node": {
"staker": {
"dangerous": { "without-block-validator": false },
"parent-chain-wallet": {
"account": "0x6A568afe0f82d34759347bb36F14A6bB171d2CBe",
"password": "passphrase",
"pathname": "/home/user/l1keystore"
},
"disable-challenge": false,
"enable": false,
"staker-interval": "10s",
"make-assertion-interval": "10s",
"strategy": "MakeNodes"
},
"sequencer": false,
"dangerous": {
"no-sequencer-coordinator": false,
"disable-blob-reader": true
},
"delayed-sequencer": { "enable": false },
"seq-coordinator": {
"enable": false,
"redis-url": "redis://redis:6379",
"lockout-duration": "30s",
"lockout-spare": "1s",
"my-url": "",
"retry-interval": "0.5s",
"seq-num-duration": "24h0m0s",
"update-interval": "3s"
},
"batch-poster": {
"enable": true,
"redis-url": "redis://redis:6379",
"max-delay": "30s",
"l1-block-bound": "ignore",
"parent-chain-wallet": {
"account": "0xe2148eE53c0755215Df69b2616E552154EdC584f",
"password": "passphrase",
"pathname": "/home/user/l1keystore"
},
"data-poster": {
"redis-signer": {
"signing-key": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
},
"wait-for-l1-finality": false
},
"hotshot-url": "http://espresso-dev-node:41000",
"light-client-address": "0xb6eb235fa509e3206f959761d11e3777e16d0e98"
},
"block-validator": {
"validation-server": {
"url": "ws://validation_node:8549",
"jwtsecret": "/config/val_jwt.hex"
},
"dangerous": { "reset-block-validation": false },
"espresso": false,
"light-client-address": ""
},
"feed": {
"input": { "url": ["ws://sequencer:9642"] },
"output": { "enable": false, "signed": false, "addr": "0.0.0.0" }
},
"transaction-streamer": {
"sovereign-sequencer-enabled": true,
"hotshot-url": "http://espresso-dev-node:41000",
"espresso-namespace": 412346
}
},
"execution": {
"sequencer": { "enable": false },
"forwarding-target": "null"
},
"persistent": { "chain": "local", "db-engine": "leveldb" },
"ws": { "addr": "0.0.0.0" },
"http": { "addr": "0.0.0.0", "vhosts": "*", "corsdomain": "*" }
}
122 changes: 63 additions & 59 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- sequencer
image: blockscout-testnode
restart: always
container_name: 'blockscout'
container_name: "blockscout"
links:
- postgres:database
command:
Expand All @@ -16,11 +16,11 @@ services:
node init/install.js postgres 5432
bin/blockscout start
extra_hosts:
- 'host.docker.internal:host-gateway'
- "host.docker.internal:host-gateway"
env_file:
- ./blockscout/nitro.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_VARIANT: "geth"
ETHEREUM_JSONRPC_HTTP_URL: http://sequencer:8547/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@postgres:5432/blockscout
Expand All @@ -31,11 +31,11 @@ services:
postgres:
image: postgres:13.6
restart: always
container_name: 'postgres'
container_name: "postgres"
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
POSTGRES_PASSWORD: ""
POSTGRES_USER: "postgres"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- "postgres-data:/var/lib/postgresql/data"
ports:
Expand Down Expand Up @@ -169,7 +169,7 @@ services:
pid: host # allow debugging
image: espresso-integration-testnode
entrypoint: /usr/local/bin/nitro
ports:
ports:
- "127.0.0.1:8547:8547"
- "127.0.0.1:8548:8548"
- "127.0.0.1:9642:9642"
Expand All @@ -181,7 +181,7 @@ services:
command: --conf.file /config/sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.api net,web3,eth,txpool,debug --node.seq-coordinator.my-url ws://sequencer:8548 --graphql.enable --graphql.vhosts * --graphql.corsdomain *
depends_on:
- geth

sequencer-espresso-finality:
pid: host # allow debugging
image: nitro-node-dev-testnode
Expand All @@ -198,7 +198,7 @@ services:
command: --conf.file /config/espresso_finality_sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.api net,web3,eth,txpool,debug --node.seq-coordinator.my-url ws://sequencer:8548 --graphql.enable --graphql.vhosts * --graphql.corsdomain *
depends_on:
- geth

sequencer_b:
pid: host # allow debugging
image: nitro-node-dev-testnode
Expand Down Expand Up @@ -261,53 +261,53 @@ services:
- redis
- validation_node

poster:
pid: host # allow debugging
image: nitro-node-dev-testnode
entrypoint: /usr/local/bin/nitro
ports:
- "127.0.0.1:8147:8547"
- "127.0.0.1:8148:8548"
volumes:
- "poster-data:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
# poster:
# pid: host # allow debugging
# image: nitro-node-dev-testnode
# entrypoint: /usr/local/bin/nitro
# ports:
# - "127.0.0.1:8147:8547"
# - "127.0.0.1:8148:8548"
# volumes:
# - "poster-data:/home/user/.arbitrum/local/nitro"
# - "l1keystore:/home/user/l1keystore"
# - "config:/config"
# command: --conf.file /config/poster_config.json
# depends_on:
# - geth
# - redis

poster_b:
pid: host # allow debugging
image: nitro-node-dev-testnode
entrypoint: /usr/local/bin/nitro
ports:
- "127.0.0.1:9147:8547"
- "127.0.0.1:9148:8548"
volumes:
- "poster-data-b:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
# poster_b:
# pid: host # allow debugging
# image: nitro-node-dev-testnode
# entrypoint: /usr/local/bin/nitro
# ports:
# - "127.0.0.1:9147:8547"
# - "127.0.0.1:9148:8548"
# volumes:
# - "poster-data-b:/home/user/.arbitrum/local/nitro"
# - "l1keystore:/home/user/l1keystore"
# - "config:/config"
# command: --conf.file /config/poster_config.json
# depends_on:
# - geth
# - redis

poster_c:
pid: host # allow debugging
image: nitro-node-dev-testnode
entrypoint: /usr/local/bin/nitro
ports:
- "127.0.0.1:9247:8547"
- "127.0.0.1:9248:8548"
volumes:
- "poster-data-c:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
# poster_c:
# pid: host # allow debugging
# image: nitro-node-dev-testnode
# entrypoint: /usr/local/bin/nitro
# ports:
# - "127.0.0.1:9247:8547"
# - "127.0.0.1:9248:8548"
# volumes:
# - "poster-data-c:/home/user/.arbitrum/local/nitro"
# - "l1keystore:/home/user/l1keystore"
# - "config:/config"
# command: --conf.file /config/poster_config.json
# depends_on:
# - geth
# - redis

validator:
pid: host # allow debugging
Expand Down Expand Up @@ -429,7 +429,11 @@ services:
- geth
- sequencer
healthcheck:
test: ["CMD-SHELL", "curl -fL http://localhost:$ESPRESSO_DEV_NODE_PORT || exit 1"]
test:
[
"CMD-SHELL",
"curl -fL http://localhost:$ESPRESSO_DEV_NODE_PORT || exit 1",
]
interval: 30s
timeout: 10s
retries: 5
Expand Down Expand Up @@ -471,9 +475,9 @@ volumes:
seqdata_espresso_finality:
unsafestaker-data:
validator-data:
poster-data:
poster-data-b:
poster-data-c:
# poster-data:
# poster-data-b:
# poster-data-c:
config:
espresso-config:
postgres-data:
Expand Down
1 change: 1 addition & 0 deletions l1keystore/0x3E6134aAD4C4d422FF2A4391Dc315c4DDf98D1a5.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"3e6134aad4c4d422ff2a4391dc315c4ddf98d1a5","id":"953406f0-7211-40df-a558-3fe2113f2ccc","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"0a149380fd5bf3eeebccdd0ca5256dab"},"ciphertext":"a47494a41853faeb464e3ef686eecd8dfce719fa959434ae04ba081f618b943f","kdf":"scrypt","kdfparams":{"salt":"f9f6c806ede2d91ed3fdaf267c7b206a63e212593a047f3ce1e667f492dc7b93","n":131072,"dklen":32,"p":1,"r":8},"mac":"38b3ba6481031c3f13ac3a6031b51feacec286b63ef87d29bb5f13cb76e4394e"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-37.0Z--3e6134aad4c4d422ff2a4391dc315c4ddf98d1a5","mnemonicCounter":"ef325f15aa2c743b09da79c453cbd153","mnemonicCiphertext":"0d9ddb0398dd683bca8e4ce9fd235232","path":"m/44'/60'/0'/0/4","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0x3f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"3f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e","id":"9db74e2b-1287-4bfa-9df5-c5fb27e581f6","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"98c472ba0bb17a965c0c83585fd7fafb"},"ciphertext":"c9c4cb1265e74517edeb184da497877697af1b27d2edc61366e1c9cc52617b11","kdf":"scrypt","kdfparams":{"salt":"fa858546f500c6c0a5346b8d68cc103349971b182f9a04b03cd3aa448dcbef0d","n":131072,"dklen":32,"p":1,"r":8},"mac":"e17b12ab2c371404cad15d59d1c1b2f1432bab343e8bdf5b7a629595a995d030"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-34.0Z--3f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e","mnemonicCounter":"dc4057839df6376237b32760f15d4c5e","mnemonicCiphertext":"e7149d951583af4fffd107fc8c178808","path":"m/44'/60'/0'/0/0","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0x46225F4cee2b4A1d506C7f894bb3dAeB21BF1596.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"46225f4cee2b4a1d506c7f894bb3daeb21bf1596","id":"9f9e6026-1d90-4509-b555-61a41e649586","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"c061c0b0d1be908d10d94d8378e670f2"},"ciphertext":"d370343ff80637b94e002e4bd441a229a50ac585df560ea86c8e3edd148fb851","kdf":"scrypt","kdfparams":{"salt":"abe68017c4a5b9871b1c49c1eff7ce520fe827a8793ff2fc957892d1eaeb148a","n":131072,"dklen":32,"p":1,"r":8},"mac":"2f92dfe9e0233e2b0cb48ba892114a6e8b74075554ba1a9db7ebbf976dcb9fc8"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-38.0Z--46225f4cee2b4a1d506c7f894bb3daeb21bf1596","mnemonicCounter":"8956b870b80b4c49d7e27712f5989838","mnemonicCiphertext":"63dc1210dd4d260e1343bc66bbeb034c","path":"m/44'/60'/0'/0/6","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0x5E1497dD1f08C87b2d8FE23e9AAB6c1De833D927.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"5e1497dd1f08c87b2d8fe23e9aab6c1de833d927","id":"1e9b73aa-56ab-4947-a872-8bae18e4ddc9","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"dd5ab9f6e7899912695a1dfe6a845047"},"ciphertext":"2587e493f1a8c6b6397273756e80ca1a5a7a2024d29225dd6f5bfed938daa267","kdf":"scrypt","kdfparams":{"salt":"5dea70a83b5818444176ab4ce63dc56c699803908382b1e2e8d3ed3a5c32b158","n":131072,"dklen":32,"p":1,"r":8},"mac":"45f8f1f18605b4ec872059cb8b0d9882e613f4aaaec0e41766803eade94f6db5"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-38.0Z--5e1497dd1f08c87b2d8fe23e9aab6c1de833d927","mnemonicCounter":"027932cad61320187d27436d869fdbd5","mnemonicCiphertext":"b68b02aebfaeda8041435730110f378a","path":"m/44'/60'/0'/0/5","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0x6A568afe0f82d34759347bb36F14A6bB171d2CBe.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"6a568afe0f82d34759347bb36f14a6bb171d2cbe","id":"7327b856-374a-4208-86be-fa5b7929872b","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"15082629dde7b2d21381802fde5736c7"},"ciphertext":"13f11ff8db7353d689e84f0a3f3bcd272c71905efde65c03b66e9f7ea63ba80d","kdf":"scrypt","kdfparams":{"salt":"8bc53d864ebfa170f36edddc55ab76c4a6e7433468e8bf2cf6edca1ef0e0eb62","n":131072,"dklen":32,"p":1,"r":8},"mac":"2192ffd44f7e6e0b75995322089417c48da18f13c2478b6aa1dab7e55c9e9009"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-35.0Z--6a568afe0f82d34759347bb36f14a6bb171d2cbe","mnemonicCounter":"4c2c88e70d9697cc6d50416dee8038ae","mnemonicCiphertext":"30565a90f4d4c44c5dcbb940c45e3932","path":"m/44'/60'/0'/0/2","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0x863c904166E801527125D8672442D736194A3362.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"863c904166e801527125d8672442d736194a3362","id":"a59175d8-450a-40c3-9431-4d4616f3deaa","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"736eac1d1dce8c8d5e96b5213789298f"},"ciphertext":"f57c6921e71f3dbdca42033247e7dfbbd95b7399f824752ee1b04d112453545a","kdf":"scrypt","kdfparams":{"salt":"32af86bfd520ff7e36e292a0113241acb9ff40d4e175b5c44ff6355ea6483930","n":131072,"dklen":32,"p":1,"r":8},"mac":"2e4bd6eace74aa4c0a2f61f159abb9c78f504fa1c2a978d77ecbd0bc4c8c727e"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-36.0Z--863c904166e801527125d8672442d736194a3362","mnemonicCounter":"dda7c7b45842b4b699f337a37d095c7d","mnemonicCiphertext":"8a1c34f993c4557730ad1877eaa1e1b4","path":"m/44'/60'/0'/0/3","locale":"en","version":"0.1"}}
1 change: 1 addition & 0 deletions l1keystore/0xe2148eE53c0755215Df69b2616E552154EdC584f.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"e2148ee53c0755215df69b2616e552154edc584f","id":"503f26c4-832e-426f-85cb-ac94716ab77d","version":3,"Crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"ccd0d6b0f041aeea7d9d0b3491a65da9"},"ciphertext":"b84383e815cfa8589462c8b0672685648b577b596ce651d673f26b4abe5c8d0d","kdf":"scrypt","kdfparams":{"salt":"ac2b5b52d919f54b52a3c852909dd3a0e90cc78c9aa8065350ad6e03db4f9ea4","n":131072,"dklen":32,"p":1,"r":8},"mac":"7b5ac68b74983a316bd549f9d11767df7c43c837e6d548bbc42ed22b97ffbd08"},"x-ethers":{"client":"ethers.js","gethFilename":"UTC--2024-11-05T22-08-35.0Z--e2148ee53c0755215df69b2616e552154edc584f","mnemonicCounter":"7eff97c760c71e32245eca145864e758","mnemonicCiphertext":"cf0cb2ddf08235651497ad0d842bc3ca","path":"m/44'/60'/0'/0/1","locale":"en","version":"0.1"}}

0 comments on commit 0c37357

Please sign in to comment.