Skip to content

A Plutus smart contract to make secrets and a reward to the few who can successfully reveal the answer.

Notifications You must be signed in to change notification settings

AgustinBadi/Guess-Game-Smart-Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess-Game-Smart-Contract

This Plutus smart contract is a guessing game where you can lock funds with a secret and whoever knows the secret can unlock the UTXO.

The main idea is that one party lock some funds with the sha2-256 hash of the secret and append it to the transaction as an inline datum. The other party can try spend the funds providing the awnser as a redeemer, notice that the awnser has to be encoded from clear text to hexadecimal. Ultimately the validator do a hash of the awnser and if its the same contained on the datum it let the second party unlock the funds.

About

A Plutus smart contract to make secrets and a reward to the few who can successfully reveal the answer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published