Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Vavala <[email protected]>
  • Loading branch information
bvavala committed May 10, 2024
1 parent 95f1312 commit 2dcda54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion eservice/bin/register-with-ledger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ function Register {
: "IAS_KEY_PEM" "${IAS_KEY_PEM:?Registration failed! PDO_IAS_KEY_PEM environment variable not set}"

if [ ${PDO_LEDGER_TYPE} == "ccf" ]; then
yell Register enclave with CCF ledger: mrenclave=${VAR_MRENCLAVE} basename=${VAR_BASENAME}
yell Register enclave with CCF ledger: \
mrenclave=${VAR_MRENCLAVE} \
basename=${VAR_BASENAME} \
sgx_debug_flag=${SGX_DEBUG_FLAG}
source ${PDO_INSTALL_ROOT}/bin/activate
try ${PDO_INSTALL_ROOT}/bin/ccf_set_expected_sgx_measurements \
--logfile __screen__ --loglevel INFO --mrenclave ${VAR_MRENCLAVE} \
Expand Down
3 changes: 2 additions & 1 deletion python/pdo/submitter/ccf/ccf_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@ def register_encalve(self,
response = self.ccf_client.submit_rpc(tx_method, tx_params)
if (response.status_code == http.HTTPStatus.OK) and (response.body.json() is True):
# reponse body will be "True" for enclave registration transaction
logger.info('Enclave registered successufully')
return tx_params['signature'] #PDO expects the submitter to return the transaction signature
else:
raise Exception(response.body.json())
except Exception as e:
logger.info('Register enclave TXN failed: {}'.format(str(e)))
logger.error('Register enclave TXN failed: {}'.format(str(e)))
raise

# -----------------------------------------------------------------
Expand Down

0 comments on commit 2dcda54

Please sign in to comment.