Skip to content

Instantly share code, notes, and snippets.

@maraoz
Last active August 29, 2015 14:25
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/f3c833e7c61d70800b41 to your computer and use it in GitHub Desktop.
Save maraoz/f3c833e7c61d70800b41 to your computer and use it in GitHub Desktop.
Bitcoin Payment Channel Script template
OP_IF
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP
<consumer pubkey> OP_CHECKSIG
OP_ELSE
OP_0 2 <consumer pubkey> <provider pubkey> 2 OP_CHECKMULTISIG
OP_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment