3

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?

4
  • 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?
    – Fermat
    Nov 5, 2022 at 5:42
  • 1
    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
    Nov 7, 2022 at 3:59
  • 1
    Have you deployed the smart contract? Nov 7, 2022 at 7:55
  • I have quite a few smart contracts deployed, but this is a general question, not targeting any particular SC.
    – KryptoKing
    Nov 10, 2022 at 14:15

1 Answer 1

2

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

3
  • 1
    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. Nov 8, 2022 at 10:05
  • 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. Nov 9, 2022 at 5:03
  • This might be a pay-to-verify service later on. Who knows but it would really help build trust.
    – KryptoKing
    Nov 10, 2022 at 14:16

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.