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
|
Return-Path: <gmaxwell@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id 732261093
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 17 May 2018 16:36:41 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-vk0-f50.google.com (mail-vk0-f50.google.com
[209.85.213.50])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 19214D3
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 17 May 2018 16:36:39 +0000 (UTC)
Received: by mail-vk0-f50.google.com with SMTP id 131-v6so3078840vkf.8
for <bitcoin-dev@lists.linuxfoundation.org>;
Thu, 17 May 2018 09:36:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:sender:in-reply-to:references:from:date:message-id
:subject:to; bh=siWGne07pkl3oBXiyfl440KNtOj1DvUR5PpmxQ1wl/M=;
b=re4ReZbo2SrHHHPT4PaCTnrk1ZBG7RqRatImefAo1A/Of4FP2X0JSvIOl2UYI4vNsT
OkuRU47Kdi+Aoj7+MctM2kEo3O8vl4FgqUOnfpgQIv+LZiH4XJVdW2S5OiINDaF2XLbQ
ZTM1jsFe7qSPGoUs1M1csIPY3S1sv75u401uhezQZaMBKw7o0NVkGNkpYzyFzzDn+slb
EN63lgOTSKScmLdSEIO/kMauHn811XFGnm/FRttKaIQhtelq9ut+yfKj5LebCT6pT3w+
x3lclKjxHUHyAbHzNTRL+zx/wM4KS5UQlEvCisseGMMYhN4dxZ+st3Q76mWNq+GkcbE5
GOeQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
:date:message-id:subject:to;
bh=siWGne07pkl3oBXiyfl440KNtOj1DvUR5PpmxQ1wl/M=;
b=p3ZL661Qsep3WggOTwA33+YCljWvUzXz3MaxhrOkbJtyb2umtV9Y4XEAifxMlUHdZG
LruaENmEBqur3b3IAty7moIpkxlwx/LKjHmFy5d+wQTXLT9Q8Mm5j5h+0mJuZCMeqco9
TVO4i6F1naEIco5uYp3m3JOmtOfqjSx+wnd/c0HhOOGrriIcnYsj1Wwg801Wdgs1Zq2x
/8ZMku5bFKpvqvazjz3bJPYHkgAGZhgWbN0JViMwE07b5wlro73mjIi3ALGi6HgCS+Sx
e8NfSds1unyAI1PFnYKybn1KjWPGRYykKfPWRUIaqYZLWqmFxUko0Y7sTB+8X+ao+Nnz
7KTg==
X-Gm-Message-State: ALKqPwdFgm1ch7Al2OnevKL513/3c/UtRrBx+yhmnQP8NrX0q0x0Jgil
18BrOGvaFNvtcoVJvOECMs8EiGwVnn9aOfIx9WQ=
X-Google-Smtp-Source: AB8JxZrB0pD5p5r3n6hLPBkLVLeyARkQLZXDbOmW0yBvPDjJiPbPsukzqbNn/fSi/5l5US8SsN7eFDT4Bx4WG0JtIIM=
X-Received: by 2002:a1f:de04:: with SMTP id v4-v6mr4483673vkg.87.1526574999145;
Thu, 17 May 2018 09:36:39 -0700 (PDT)
MIME-Version: 1.0
Sender: gmaxwell@gmail.com
Received: by 10.103.81.132 with HTTP; Thu, 17 May 2018 09:36:37 -0700 (PDT)
In-Reply-To: <d43c6082-1b2c-c95b-5144-99ad0021ea6c@mattcorallo.com>
References: <d43c6082-1b2c-c95b-5144-99ad0021ea6c@mattcorallo.com>
From: Gregory Maxwell <greg@xiph.org>
Date: Thu, 17 May 2018 16:36:37 +0000
X-Google-Sender-Auth: CnrzzxoQgl2gnFfIiXJkkTYLTpc
Message-ID: <CAAS2fgRF-MhOvpFY6c_qAPzNMo3GQ28RExdSbOV6Q6Oy2iWn1A@mail.gmail.com>
To: Matt Corallo <lf-lists@mattcorallo.com>,
Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID, 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
Subject: Re: [bitcoin-dev] BIP 158 Flexibility and Filter Size
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, 17 May 2018 16:36:41 -0000
On Thu, May 17, 2018 at 3:25 PM, Matt Corallo via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
> I believe (1) could be skipped entirely - there is almost no reason why
> you'd not be able to filter for, eg, the set of output scripts in a
> transaction you know about
I think this is convincing for the txids themselves.
What about also making input prevouts filter based on the scriptpubkey
being _spent_? Layering wise in the processing it's a bit ugly, but
if you validated the block you have the data needed.
This would eliminate the multiple data type mixing entirely.
|