litentry / tee-worker

Based on the integritee-network/worker framework
Apache License 2.0
4 stars 2 forks source link

Wrong signer origin for trusted call #88

Closed Kailai-Wang closed 2 years ago

Kailai-Wang commented 2 years ago

Currently the signer of the trusted call is always root:

TrustedCall::set_user_shielding_key(root, who, key) => {
  ensure!(is_root(&root), StfError::MissingPrivileges(root));

This is wrong as the extrinsic handler expects the signer to be self.stf_enclave_signer.get_enclave_account()