Skip to content

Instantly share code, notes, and snippets.

@dr-orlovsky
Last active July 25, 2019 09:41
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 dr-orlovsky/ddb25681d0f77cd631525f944d6472b9 to your computer and use it in GitHub Desktop.
Save dr-orlovsky/ddb25681d0f77cd631525f944d6472b9 to your computer and use it in GitHub Desktop.
RGB Notation

Bitcoin

Transaction: [txid][@version]<inputs|outputs>[@timelock]

Inputs (same for outputs): input1,input2 (enumerated all inputs) or input1,input2,...,inputN,... (some inputs are omitted)

Inputs order (same for outputs): , for strict sequential order, ; for non-strict (arbitrary) order

Single input: #no(txid:vout-[nSeqence]-[[keys/signatures]]-[[unlocking-script]])

Example:

ln-cmt @2< #0(ln-fundnig:0 - multisig:alice,bob) | #0$A(pk_redeem / alice+~), #1$B(bob*), #2..n$C(bob+% / pk_redeem / pk_htlc), #n..m$D(pk_redeem / bob+^ / alice+%) >@0x20...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment