Closed brenzi closed 4 years ago
Done. but now the get_counter function requires an ed25519 public key as an account, which is used at the same time to verify the signature. Hence the client's cli interface needs to be adjusted to genereate public keys from the input.
The current implementation is invalid as the signature is verified by the worker (untrusted) instead of the worker enclave (trusted)
by ow we should be able to work with sr25519, right?
yes
right now, anyone can call substratee-worker's
get_counter
for any account.worker should only return counter value of a verified caller -> use ed25519 signature