Skip to content

Instantly share code, notes, and snippets.

@maraoz
Created July 8, 2015 01:01
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/1e7ed2238492db6600fb to your computer and use it in GitHub Desktop.
Save maraoz/1e7ed2238492db6600fb to your computer and use it in GitHub Desktop.
Generic smart contract for trustless service with a time restriction
OP_IF
<service provided conditions>
<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