summaryrefslogtreecommitdiff
path: root/b6/0820ce2788d881424ec698ef4efb41fc7ea1c7
blob: 8c05e2cc133df39c1ad5b125ac5f46e27f37a6e6 (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
Return-Path: <pieter.wuille@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id C87A73525
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu,  2 May 2019 23:35:19 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com
	[209.85.167.171])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 74383189
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu,  2 May 2019 23:35:19 +0000 (UTC)
Received: by mail-oi1-f171.google.com with SMTP id j9so2380894oie.10
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 02 May 2019 16:35:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:references:in-reply-to:from:date:message-id:subject:to
	:cc; bh=RkjJlm3Qeblwztw0DgdMHe6d1AU1OZT4v2q8DwgJqsA=;
	b=LhcV6vXpMKqbf6sWiQR2YqGm1UfE2jg8hWuwSQF8R3flH5XPIfapibTOBYy/FubtyP
	+/KPVEpHM7/lDRkvi8daVS57cQepCDWVplctnndAKfr+MDMXPufFDeW3W/hR5ey1Te2m
	L0Ir90jlV8wbww3n5t5U7gmrXoLWyCkv3Qelr2gYDIAxK/KJETsU+QXlg31SM7OdXECo
	kmHWNA5vlpt3LYZC/tF8swPE/52mEO8UvnhSQFddkpzYPACk7LhpNfzsLnVuSe6dHQtb
	315lYsbmDrxxs85HPWLuQuGlr/Ca0pJwWFznhULYxzjZ5l3es3ximwNhL2e9RvpZkwoP
	kyiw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:cc;
	bh=RkjJlm3Qeblwztw0DgdMHe6d1AU1OZT4v2q8DwgJqsA=;
	b=o8GOaH80cIYBQcthcQ6hlJN61hHox/TnFozeTAlH6IT3EXpGsfon+Z26dUU27GAAfj
	KZHyEM1h9Kl9zmtDo9/stqvnsyq+8SXMn4U5xNvxinJEdd9LfHiBfVQtdV1Q9NeB5WdL
	t1o65on2Sntxeq00d9uNYOFH1tPGAnktyH6SYTjbi+S2Kx/zRQUgFZpHwlM+vwiJPT9K
	sjRsfFaU9abDslT5QDD4YANA/YYOIo5alYVwTJnsFZWEtL1C6qm9zVEsnUO+n76llrGl
	+V1mtVKmEiQqTSsLaFTWpMybIM4e7Hdsy+YoRgJi0TBdwIWnckGrGeW/P6BoYqDTq9Dr
	b7VQ==
X-Gm-Message-State: APjAAAXqjcQ6X0HLAllX0dDfnRHqnxX8qV3XYP2E/mlA5xOxZ4bwIZSO
	w91vWCpEW/Sek2kTz7SfBkFMxGKMAcgD7CjczAk=
X-Google-Smtp-Source: APXvYqx258mfc7w4Pi7cjqRrH9skF0TBRAsEA23H/JPYML4PAYZYQwqvt87bNHO5kvaJcypC/PXRMTuSKDlWRpUw7hc=
X-Received: by 2002:aca:b841:: with SMTP id i62mr4415468oif.103.1556840118356; 
	Thu, 02 May 2019 16:35:18 -0700 (PDT)
MIME-Version: 1.0
References: <21346b3c-dad5-c666-9234-8916aa5a56e4@gmail.com>
	<201904290301.43459.luke@dashjr.org>
	<56b67b57-dc11-183a-1f4e-5a8c296b64cc@gmail.com>
	<aglJm4Zqda4W5Lrq33myL085DPnxjQTY1Eg6ANYFOe10nXeW8NvBOUUckAF4ASsZIO00xB8KoZ6wOQPPFB9g-uOl8A4gwZ10MYYZzZ2BjU0=@protonmail.com>
	<1019ea57-7240-2dc7-8357-970223278e3d@gmail.com>
	<UjO5iL0rbqOeo-nhFpOQSnVX7B4EHToLspAjUNFevNahTrU5O650U0shNQEOwSMCUxs90LZOtl5OuX9VawOXtGTTaW1Wl0gEQF0gv_jtb6w=@protonmail.com>
	<6b8f2a91-af73-4d66-1b90-51acd4ce217c@gmail.com>
In-Reply-To: <6b8f2a91-af73-4d66-1b90-51acd4ce217c@gmail.com>
From: Pieter Wuille <pieter.wuille@gmail.com>
Date: Thu, 2 May 2019 16:35:06 -0700
Message-ID: <CAPg+sBgDEMfeh_17q++EANOu9T4fcf49kJdi4rT8vRqQQkmdHA@mail.gmail.com>
To: Aymeric Vitte <vitteaymeric@gmail.com>, 
	Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Fri, 03 May 2019 15:56:07 +0000
Subject: Re: [bitcoin-dev] IsStandard
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: Thu, 02 May 2019 23:35:19 -0000

On Thu, 2 May 2019 at 16:28, Aymeric Vitte via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
>
> Thanks for the answer, indeed for the redeem script and someone
> attempting a 0/1 of 3, good example
>
> So to summarize everything is standard as long as it matches P2PKH,
> P2SH, P2WPKH or P2WSH , the redeem scripts for the sha bounties are in
> op_return

Generally, all spends of P2SH/P2WSH is standard, with the following exceptions:
* Non-push operations in the scriptSig
* Resource limitations (too large scripts or items on the stack)
* Protections against known attack vectors (low s rule, cleanstack
rule, minimally encoded numbers rule, codesep usage, ...)
* Usage of unconditionally spendable constructions intended for future
extensions, such as spending future segwit versions.

Cheers,

-- 
Pieter