Skip to content

OP_CODEs

Assaf Shomer edited this page Jun 16, 2015 · 16 revisions

This set of OP_CODES are only recognized by the colored coins software and should not be confused with Bitcoin OP_CODES (such as OP_RETURN).

Colored coins OP_CODES are encoded using a single byte. Half of that byte is reserved for Core Colored Coins protocol OP_CODES, the other half is left open for custom OP_CODES that may be added by users (e.g. in forks of the colored coins opensource software).

In particular

  • The first 128 bits 0x00-0x7F are Colored Coins OP_CODES
  • 0x01-0x0F represent Issuance OP_CODES
  • 0x10-0x1F represent Transfer OP_CODES
  • The last 128 bits 0x80-0xFF are custom OP_CODES

The table below lists the (currently available) Colored Coins OP_CODES

  • The I/T column refers to whether this is an Issuance or a Transfer OP_CODE)
  • The D column designates whether any metadata was stored at all
  • The M column designates whether a multisignature address was used in addition to OP_RETURN
Hex Meaning I/T D M Comment
0x00 Undefined
0x01 All metadata in OP_RETURN I
0x02 SHA256 of metadata in 1 of 2 multisig I
0x03 Both SHA1 Torrent Hash + SHA256 of metadata in 1 of 3 multisig I
0x04 SHA1 Torrent Hash in OP_RETURN
No SHA256 of metadata
I Low Security
0x05 No Metadata, cannot add rules I Locked
0x06 No Metadata, can add rules I Unlocked
0x10 All metadata in OP_RETURN T
0x11 SHA256 of metadata in 1 of 2 multisig T
0x12 Both SHA1 Torrent Hash + SHA256 of metadata in 1 of 3 multisig T
0x13 SHA1 Torrent Hash in OP_RETURN
No SHA256 of metadata
T Low Security
0x14 SHA1 Torrent Hash in OP_RETURN
No SHA256 of metadata
No rules in metadata
T Low Security, Ignore rules if exist
0x15 No Metadata T
Clone this wiki locally