6

I'm trying to create a contract that verifies the signature in a contract function. I wasn't able to find anything in the examples or in the docs.

Is it possible to send a signature to an ink! contract and verify it in its methods?

1
  • What type of signature are you looking to verify?
    – cmichi
    Apr 4, 2022 at 6:38

1 Answer 1

8

At the moment contract-pallet allows you only to verify ECDSA signatures. In ink! you can use ink_env::ecdsa_recover to do that.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.