r/cardano • • 3d ago

Developer From source code to script hash: verifying a Cardano escrow contract with UPLC Link

Confirmation screen showing the submitted transaction and its hash.

Publishing a contract's source code is a good start, but it does not show that this code produced the script running on-chain. A compilation step sits in between.

uplc.link is an open-source platform for Aiken contracts: it rebuilds the contract from a GitHub repository, commit and compiler version, then compares the resulting script hash with the expected one. Verification records can also be registered on-chain.

We tested it on the escrow contract of our project (Preprod): the build reproduced the expected hash from plutus.json. The article covers the configuration, the build log and the registry submission, with screenshots.

Full article on the Cardano Forum:

https://forum.cardano.org/t/from-source-code-to-script-hash-verifying-a-cardano-escrow-contract-with-uplc-link/158460

Open source lets us read the code. Reproducible builds let us verify it.

13 Upvotes

1 comment sorted by

•

u/AutoModerator 3d ago

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.