Skip to content

Instantly share code, notes, and snippets.

@maraoz
Created July 8, 2015 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maraoz/6619395a475eadec25b5 to your computer and use it in GitHub Desktop.
Save maraoz/6619395a475eadec25b5 to your computer and use it in GitHub Desktop.
Smart contract for trustless double-sha256 pre-image cracking service with a time restriction
OP_IF
OP_HASH256 <challenge hash> OP_EQUALVERIFY
<provider pubkey>
ELSE
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP
<client pubkey>
OP_ENDIF
OP_CHECKSIGVERIFY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment