support sgx2

This commit is contained in:
kayryu 2023-03-31 17:54:01 +08:00
parent 345d280d78
commit 942b96c82b
4 changed files with 12 additions and 7 deletions

View File

@ -1,9 +1,9 @@
version = 1
attestation_style = 1
attestation_style = 2
port = 18730
executors = 2
db_url = "http://10.0.0.5:18710"
msg_pool_url = "http://10.0.0.5:18720"
db_url = "http://localhost:18710"
msg_pool_url = "http://localhost:18720"
db_token = ""
cert_path = "../servers/test-ca/ca.cert"
round_time_limit = 60

View File

@ -0,0 +1,4 @@
#PCCSserveraddress
PCCS_URL=https://172.16.192.1:8081/sgx/certification/v3/
#ToacceptinsecureHTTPScert,setthisoptiontoFALSE
USE_SECURE_CERT=FALSE

View File

@ -1,15 +1,15 @@
# local msg_pool server port.
msg_pool_port = 18720
# local node url for watcher
node_ws_url = "ws://10.0.0.5:9945"
node_ws_url = "ws://138.91.116.52:9945"
# local database url for data storage.
db_url = "http://10.0.0.5:18710"
db_url = "http://localhost:18710"
# local database token for database usage.
db_token = ""
# local sgx key server url
key_server_url = "https://10.0.0.5:18730"
key_server_url = "https://localhost:18730"
# used to generate LocalKeyStore, used to get AccountId in substrate.
identity = "0x0000000000000000000000000000000000000000000000000000000000000000"
identity = "0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133"
# seconds per block
block_time = 3
# blocks per epoch

View File

@ -32,6 +32,7 @@ services:
RUST_LOG: info
volumes:
- ./configs/key.toml:/bnk/key.toml
- ./configs/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf
devices:
- /dev/sgx/enclave
- /dev/sgx/provision