Verify TEE Signature
Application users can verify a message was signed by a TEE using the application address.
Attested API Template Example
The Attested API templates include an example of:
- An API for the application user to request a random number signed by the application wallet.
- When requested, the application generating a random number, creating and signing a message containing the random number, and returning these to the requesting user.
Verify Message Signed by Application Example
-
Use the
eigenx app info [app-id]CLI command to get the wallet addresses for the app. -
Use the app
/randomAPIGET /random → \{ randomNumber, timestamp, message, messageHash, signature, signer }to obtain the random number, message, signature, and signer. -
Use Verify Signature at https://etherscan.io/verifiedSignatures# to verify that the message is signed by one of the addresses obtained in Step 1.