<p>You compile the code yourself to see if the address you arrive at aligns with what's live.</p>

CC BY-SA 4.0
2022-11-08T10:05:37.740Z
I know this is the correct answer but on the other hand I understand this is also not acceptable for the standard user and it sucks compared to other blockchains.
Falcon Stakepool
CC BY-SA 4.0
2022-11-09T05:03:13.003Z
Well you can always trust a block explorer with such features like etherscan(or other centralised/trusted data providers) to feed you the truth, like other blockchains do.
Pizza Knight
CC BY-SA 4.0
2022-11-10T14:16:29.230Z
This might be a pay-to-verify service later on. Who knows but it would really help build trust.
KryptoKing
CC BY-SA 4.0
2022-11-05T04:38:34.777Z
2022-11-05T04:38:34.777Z
Pizza Knight
<p>There's a lot of talk about open-source code on Cardano, but how can I verify that the SmartContract(s) in a git repo are the actual SmartContracts the project has deployed to the Blockchain?</p>
<p>I want to know this for two reasons:</p>
<ol>
<li><p>Make sure I'm not staking my ADA in a SmartContract that looks perfect on GitHub, but has a backdoor (to steal my ADA) onchain.</p>
</li>
<li><p>So other people can verify my code</p>
</li>
</ol>
<p>Can I do this using the Cardano Node from the Ubuntu CLI?</p>

CC BY-SA 4.0
2022-11-05T05:42:17.297Z
You do not need the node, you need GHC and some plutus dependencies to compile it. Do you have a source that you want to check?
Fermat
CC BY-SA 4.0
2022-11-07T03:59:50.080Z
No, I got it just thought, it might be a good question to have on here for new learners. For some reason theres not really an easy way in for new guys yet, but it has gotten a lot better
KryptoKing
CC BY-SA 4.0
2022-11-07T07:55:58.643Z
Have you deployed the smart contract?
Shahroz Khan
CC BY-SA 4.0
2022-11-10T14:15:24.003Z
I have quite a few smart contracts deployed, but this is a general question, not targeting any particular SC.
KryptoKing
<plutus><smart-contract><cardano-node><on-chain><verification>
How To Verify The Code Of A SmartContract?
# How To Verify The Code Of A SmartContract?

(Asked by: username_0 on 2022-11-05)

There's a lot of talk about open-source code on Cardano, but how can I verify that the SmartContract(s) in a git repo are the actual SmartContracts the project has deployed to the Blockchain?

I want to know this for two reasons:

1. Make sure I'm not staking my ADA in a SmartContract that looks perfect on GitHub, but has a backdoor (to steal my ADA) onchain.
2. So other people can verify my code

Can I do this using the Cardano Node from the Ubuntu CLI?

**Tags:** plutus, smart-contract, cardano-node, on-chain, verification
> **Comments:**
> **username_1**: You do not need the node, you need GHC and some plutus dependencies to compile it. Do you have a source that you want to check?  
> **username_0**: No, I got it just thought, it might be a good question to have on here for new learners. For some reason theres not really an easy way in for new guys yet, but it has gotten a lot better  
> **username_2**: Have you deployed the smart contract?  
> **username_0**: I have quite a few smart contracts deployed, but this is a general question, not targeting any particular SC.  

---

## 1 answers

### Answer by username_3 on 2022-11-05. Score: 2 | Accepted answer

You compile the code yourself to see if the address you arrive at aligns with what's live.

> **Comments:**
> **username_4**: I know this is the correct answer but on the other hand I understand this is also not acceptable for the standard user and it sucks compared to other blockchains.  
> **username_3**: Well you can always trust a block explorer with such features like etherscan(or other centralised/trusted data providers) to feed you the truth, like other blockchains do.  
> **username_0**: This might be a pay-to-verify service later on. Who knows but it would really help build trust.  

---

