<p>You can use this <a href="https://github.com/input-output-hk/plutus/blob/b778f9abbe172177b579badf83b899ee05fda2e0/plutus-ledger-api/src/Plutus/V1/Ledger/Contexts.hs#L233" rel="nofollow noreferrer">function</a> to verify signature from a validator</p>

CC BY-SA 4.0
2021-12-07T12:05:29.163Z
2021-12-07T12:05:29.163Z
Stanislav Zhdanovich
<p>Is there a function like <a href="https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger/html/Ledger-Crypto.html#v:signedBy" rel="nofollow noreferrer">signedBy</a> that I can call in a Plutus script to verify a digital signature?</p>

CC BY-SA 4.0
2021-11-08T17:19:36.163Z
So are you looking for a type like this: verifySig :: Signature -> PubKey -> Bool? (signedBy without the tx)?
Jacob - SNOWY Pool
CC BY-SA 4.0
2021-11-08T17:57:30.843Z
Well the problem is that a Plutus script calling signedBy will not compile because signedBy is not inlinable. So I need a function that can be called by a Plutus script. The TxId argument isn't a big deal because I can always get that from the ScriptContext.
Eric
<plutus><script><validator>
Verifiying a digital signature in a Plutus script
# Verifiying a digital signature in a Plutus script

(Asked by: username_0 on 2021-11-08)

Is there a function like [signedBy](https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger/html/Ledger-Crypto.html#v:signedBy) that I can call in a Plutus script to verify a digital signature?

**Tags:** plutus, script, validator
> **Comments:**
> **username_1**: So are you looking for a type like this: verifySig :: Signature -> PubKey -> Bool? (signedBy without the tx)?  
> **username_0**: Well the problem is that a Plutus script calling signedBy will not compile because signedBy is not inlinable. So I need a function that can be called by a Plutus script. The TxId argument isn't a big deal because I can always get that from the ScriptContext.  

---

## 1 answers

### Answer by username_2 on 2021-12-07. Score: 1

You can use this [function](https://github.com/input-output-hk/plutus/blob/b778f9abbe172177b579badf83b899ee05fda2e0/plutus-ledger-api/src/Plutus/V1/Ledger/Contexts.hs#L233) to verify signature from a validator


---

