I'm trying to do the signature verification in an ink! contract. I'm using ink_env::ecdsa_recover for this purpose.
It is returning Compressed Public Key of type [u8; 33]
.
I have the AccountId of the signer in the contract storage.
Is there a way I can get the AccountId from the Compressed Public Key to verify the signer? or is there a better way to approach this?