summaryrefslogtreecommitdiff
path: root/c5/fb9313250c208b3a3eb687df047c298aac2a51
blob: 9352d19acda8eb4b2bf5a43e0c3cbaab700fdb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Return-Path: <roconnor@blockstream.io>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id B84DE259
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  2 Nov 2016 17:30:35 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com
	[209.85.220.182])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9584B171
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed,  2 Nov 2016 17:30:34 +0000 (UTC)
Received: by mail-qk0-f182.google.com with SMTP id o68so26704614qkf.3
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 02 Nov 2016 10:30:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=blockstream-io.20150623.gappssmtp.com; s=20150623;
	h=mime-version:from:date:message-id:subject:to;
	bh=rSIY8lPGhWH8DsGt5Vpe7OtTzMedluSUFrGfDl6StqM=;
	b=IcpWGWMNEMaPLXitu9FeHh9XNzvZkK8Gw7PcR/Ik5PUkw4fyDNUMZhUCZFcL5bv3L+
	tZ6QZNJ7kkzgpq/FLIhxaD38sZnzci1Z1VEblC0KX/iTc/F844ruauHqZ+OsA2qsq+KW
	p7xenQ9Al/Jjn/uRXTue7eQHyvGo1gm/x8zUb0OolpdPSVwTcxF7eASiTSjBnxnR6iQQ
	EYAWin3FmVATOd2M5xkmJGWmAqZIVS4zePWEejx+yi8aAYl9xY0EBDkrq0wL8DujZOBO
	pRZOf+lhqKb3diAKAF/236DTQG99xNA376ia6/5AlTXXJgr2RjM7MrQnD5EWBnSuq1HX
	VyOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=rSIY8lPGhWH8DsGt5Vpe7OtTzMedluSUFrGfDl6StqM=;
	b=NDSu0ixa25AoJXkMbjB8tFFw35egpXeTxEVGR41uJZG3y029pqFeVwfBfOgD3AEU/h
	oaeSvM2Uk2gcasJTcnwNWB/zr/9KDVzBF6A1qe+u+2XWpI1c0IqOICe2wjndjbDcl5sC
	qCufZJObwYZiW0FV4Zp3apJNYebZjeBGZeW63b2rBJ+Ov5gEnn4KntX+Qx94c/Wlut4U
	cqFG2SEVKpMD6Pooz74y+OAh0uAgdTiNf8oAIkGEwoGzmnxkwO8Chzic8OY0L4F2ywN8
	MOWN6fy6lXoEP5b7fWBxgQ+AOCqLbvoXz8DsctvP361vMCTTiDQoTW+l9lRRFvfXtXzX
	FE/Q==
X-Gm-Message-State: ABUngvd4BQlGTgCer0Aqb6KcXzXcL1+OFTALlGMIJ+g1tw9UZQK6iYt64A4AHBlrGFi2KwCZM/iF8bdFkpfmuVfg
X-Received: by 10.55.221.29 with SMTP id n29mr4809540qki.114.1478107833531;
	Wed, 02 Nov 2016 10:30:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.164.195 with HTTP; Wed, 2 Nov 2016 10:30:12 -0700 (PDT)
From: "Russell O'Connor" <roconnor@blockstream.io>
Date: Wed, 2 Nov 2016 13:30:12 -0400
Message-ID: <CAMZUoKkG0AqwsTE=opTcsD=xqWsoVxqPVCzFbcSz8zJT1wiFPg@mail.gmail.com>
To: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary=001a1149d3a45bab54054054ccd9
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE,
	RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Thu, 03 Nov 2016 01:32:21 +0000
Subject: [bitcoin-dev] Implementing Covenants with OP_CHECKSIGFROMSTACKVERIFY
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Nov 2016 17:30:35 -0000

--001a1149d3a45bab54054054ccd9
Content-Type: text/plain; charset=UTF-8

Hi all,

It is possible to implement covenants using two script extensions: OP_CAT
and OP_CHECKSIGFROMSTACKVERIFY.  Both of these op codes are already
available in the Elements Alpha sidechain, so it is possible to construct
covenants in Elements Alpha today.  I have detailed how the construction
works in a blog post at <
https://blockstream.com/2016/11/02/covenants-in-elements-alpha.html>.  As
an example, I've constructed scripts for the Moeser-Eyal-Sirer vault.

I'm interested in collecting and implementing other useful covenants, so if
people have ideas, please post them.

If there are any questions, I'd be happy to answer.

-- 
Russell O'Connor

--001a1149d3a45bab54054054ccd9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<br><br>It is possible to implement covenants using=
 two script extensions: OP_CAT and OP_CHECKSIGFROMSTACKVERIFY.=C2=A0 Both o=
f these op codes are already available in the Elements Alpha sidechain, so =
it is possible to construct covenants in Elements Alpha today.=C2=A0 I have=
 detailed how the construction works in a blog post at &lt;<a href=3D"https=
://blockstream.com/2016/11/02/covenants-in-elements-alpha.html">https://blo=
ckstream.com/2016/11/02/covenants-in-elements-alpha.html</a>&gt;.=C2=A0 As =
an example, I&#39;ve constructed scripts for the Moeser-Eyal-Sirer vault.<b=
r><br>I&#39;m interested in collecting and implementing other useful covena=
nts, so if people have ideas, please post them.<br><br>If there are any que=
stions, I&#39;d be happy to answer.=C2=A0 <br><br>-- <br>Russell O&#39;Conn=
or<br></div>

--001a1149d3a45bab54054054ccd9--