Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.2 KB

cat.md

File metadata and controls

36 lines (24 loc) · 1.2 KB

+++ title = "OP_CAT" description = "Overview of OP_CAT proposal to allow the concatenation of two values on the stack." weight = 17 template = "docs/page.html"

[extra] lead = "" toc = true +++

Introduction

OP_CAT is a simple opcode that concatenates two byte strings together in Bitcoin Script.

Andrew Poelstra once wrote a two-part series of blog posts to showcase how the OP_CAT opcode can in itself effectively enable covenants:

It's important to clarify that this proposal doesn't aim to introduce covenants to Bitcoin. Instead, it is focused on introducing an opcode that holds broad utility across various scenarios. The potency of several covenant proposals increases substantially when they can be integrated with the functionality provided by CAT.

Specification

A BIP of the OP_CAT opcode is currently in draft status on GitHub.

An implementation on Bitcoin Inquisition is also available.