From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 732261093 for ; 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 ; Thu, 17 May 2018 16:36:39 +0000 (UTC) Received: by mail-vk0-f50.google.com with SMTP id 131-v6so3078840vkf.8 for ; 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: References: From: Gregory Maxwell Date: Thu, 17 May 2018 16:36:37 +0000 X-Google-Sender-Auth: CnrzzxoQgl2gnFfIiXJkkTYLTpc Message-ID: To: Matt Corallo , Bitcoin Protocol Discussion 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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.