Implement public key extraction in TZ backend