Delivery-date: Thu, 25 Sep 2025 14:24:58 -0700 Received: from mail-oa1-f63.google.com ([209.85.160.63]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1v1tST-0002h0-L9 for bitcoindev@gnusha.org; Thu, 25 Sep 2025 14:24:58 -0700 Received: by mail-oa1-f63.google.com with SMTP id 586e51a60fabf-3524dfcf121sf503391fac.0 for ; Thu, 25 Sep 2025 14:24:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758835491; cv=pass; d=google.com; s=arc-20240605; b=eCcIJHGbmNf1KBjAjrjBBmBaLvBgWmqjcGXfAhnL5DBH96hnCVv1oiZ8w/x7JcQDMO AGHwfvxgMvagxec26gH02rLiOxcGhYHt0U3VNpa1KVl2r011ToBv77kje7Y3xpBzb/fa Mqzg5U2UM73zQElvugXJ+P2z526ePMjur7ElW++M+d2V6YzDF9YaYtz/UQVAdX9Il8VB /DPSPrH2BllX/6u7RfExpfka1/eTdHQ+8Cypd/veF4kJQiGHKmmvmpCbieEsaJakJDvA s/YQBXyiTFAkkClOEug0kBFshE7dej2jqDylP2ahskILervvF/nevNzx9D4Ua7SAV7zK 5wHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:autocrypt:from :content-language:references:to:subject:mime-version:date:message-id :sender:dkim-signature; bh=ACBeRucmGuuyI+O32xbD13b4PzwcxuIYSLNghgVqLUE=; fh=QgTlzWpI+/hSfZpSJCmcd/niUc8MrxAKFD82WKpu6Ac=; b=dKwh9RHLOtDlTGXLIQF+aMuszbFhJc+4IVWuCeDgem9TWpZjDyYjj5OKwsJgKksVHL B/90ZC02lAcu9tnD1u9e8EYQPP6ahMLWhQAnd/G48dsEoBY29apu/RdTqTYsPUt/cSYv lO8H2oOuJHpHp1pO7JabKcp/6XUAOu0XQ8ucVxBacLg1JQejfFegQyZCJRUPs2V3KJsd 2yL1EQwyWlquohe+vWHawoCi4FK9QhQg7Qnq5FQ/3nChgMwUHrkevEN2aoDUYZYtChGF XGVScGe9nk9m35PVLUnNWTLQk6P8+9hBAZVBqhWSb15pLYHMrCcZT4uklBGJNqIhevD5 SPfQ==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass (test mode) header.i=@dashjr.org header.s=zinan header.b=xf915QXl; spf=pass (google.com: domain of luke@dashjr.org designates 2001:470:88ff:2f::1 as permitted sender) smtp.mailfrom=luke@dashjr.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dashjr.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1758835491; x=1759440291; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:autocrypt:from:content-language :references:to:subject:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=ACBeRucmGuuyI+O32xbD13b4PzwcxuIYSLNghgVqLUE=; b=wRV2Dw+TZWf5ZSG386TOPRzqaTc/AUzVbMYVYxkjrwliyILiLXLUIm6vGsMT3wJ0qT o/rcIdmb5ZFIGubFOo30SEpg7fvVZ7oFyB7tDP/ZIsKSXKW3UELHVwfB3gtZ/IY7/hqz s2ok2PyA0YFviim7ppBC/BZCIhFlrSokFYc7O015yCZHloet7CzsOHablsjGkk+y1zgV XFhcG+Zi3eYRTLnjQLtapjnYqMkngtrCDIAlBJR61X8waDylQ19Dlakq69Z5eArSoR1q havpiWh+cYLvSLPWx673SaTM00G52dZyPjXf/8NXOAGS2c9NmU7Uti5+Xp/+Ry/phFzx allg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758835491; x=1759440291; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:autocrypt:from:content-language :references:to:subject:mime-version:date:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=ACBeRucmGuuyI+O32xbD13b4PzwcxuIYSLNghgVqLUE=; b=nkxUuPnHWT8uiSmKHFYhqa9gbS7lKyyyI/IB7++7hG9dESINYFN1jlCsX/M+LNOm61 R11f1fs8/7IbAMc+nnoCl0oujQvpFE8tO19HtEYghY3wRTLzdCMIPzYv+i12k6xDehs+ ApygIv9k8a8+1/T39zqW0/jM408PpfPavnESaSFiKAa8lL+OohCG7yCjODCN6kqPRP8U STYBa5DTnh9ztswLw+ebSeZCfL0TczUyyg89LoAqeKtyx2QUzKanl9NnSbVBhm7I6gQF lBqVDryuv91h9lUKJG2SVCpaIPzfr+cfGxxYa4JdRcJZhtkl+oKcsn/x2FmUIyKtOK9Z vcNw== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWYKy82kotFCmvWiMuuSAP2+x5tdWpxjeXyGKSp7aOtxGw4penj5eYIaGFuXVl9V4S5zqn0pMmzXxqZ@gnusha.org X-Gm-Message-State: AOJu0YyjKLcgi12ifoCSUehSZdli7GhLeRT3dmpIQD9fMLaE5IOAmDNA gs/ogRRwhH5uKkgwUCA4e3v15MH7Ex/qvm//N9pUhgzoTntTi0IKttrs X-Google-Smtp-Source: AGHT+IH/ZouZ6piebXpmuych5TJ0W9KrojvvAf301plEUCvFDUzRdVxIqhYHaupDZbEfT7aWKBlItQ== X-Received: by 2002:a05:6870:9728:b0:31d:655c:4ac4 with SMTP id 586e51a60fabf-35ec110e9bemr2053305fac.19.1758835490973; Thu, 25 Sep 2025 14:24:50 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com; h="ARHlJd5XqHDpXKqCL6lcE2HVufgt+twPPxJBYtkupctxyLgu9A==" Received: by 2002:a05:6871:6c09:b0:30b:7ec0:8afb with SMTP id 586e51a60fabf-35eef8cf667ls563799fac.2.-pod-prod-04-us; Thu, 25 Sep 2025 14:24:46 -0700 (PDT) X-Received: by 2002:a05:6808:6702:b0:43f:1c40:212c with SMTP id 5614622812f47-43f4cd991f4mr2623661b6e.19.1758835486078; Thu, 25 Sep 2025 14:24:46 -0700 (PDT) Received: by 2002:a05:620a:5623:b0:80d:5a8b:a44e with SMTP id af79cd13be357-85b8b2906b3ms85a; Thu, 25 Sep 2025 07:33:26 -0700 (PDT) X-Received: by 2002:a05:622a:47:b0:4b5:e9e3:3c90 with SMTP id d75a77b69052e-4da4782db40mr47338801cf.9.1758810805750; Thu, 25 Sep 2025 07:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758810805; cv=none; d=google.com; s=arc-20240605; b=EvqCWwCQU0h/TTHfcCMJDCegA7lK8dGimW9BKjJoKBa80BMkUAoShMGrGu/pIqiWuR Zx9Lc2W3Fb99aMEobENq9WK3VjZmQX5J53cyw9CLXi/+3ScyFwvQNG/JxxU/BBJzQgL5 s+b+FrvhDuy92Gq5zhTID+4/l6NOLaqUipIOOH5hDa0H5KNiw/kogFUH9RZDhHEs4kl1 bn4+fsVXU26Btz1bJxFYe6/dRIjrgdgZLW9/d17jAxQKlgXJj68Lew0xtHViuNZ9hkOP m84uz3ycVVhNO1/BmTuOINiK73KghMExGXXSkyXw5iLXIIIwJTjPrKlPMU6d4qIVv10d B0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:mime-version:date:message-id :dkim-signature; bh=9Z9Hpl5dQ4od8Lst7PFHx4YEv5yWV9edTjhrktKUKM8=; fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=; b=lv/R8u5clEBDNJPbBmVdf7O7HsltUWe1q5U7JBly552uob8qzCFNDCH18pX9fCFU9y DUQizseYo2diTkttLivLmblqtXWD6ewRnuNVJmOAdFto1KhPo8rBqLJUW//sAogYjsKS 4vBji+LS36sj2+Tq6Xz1/OSwLCT8IaGIGwarioKrIuDpfCI1qtDkmukd/630FhnYH2Fp EPdef2xUcIxlVSR4Z+NHEITUCnRs3HbWA5Q4YAezF/dAMCwBWfzEhCDgOC5R0PxzOpS9 +1wyd3eBBS7uPPDiXQWPnkpQn5W26K4Y1vqUwqsXNQjMi3MAnmRXdgwsYMBKgB9Y4OR/ +9tQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass (test mode) header.i=@dashjr.org header.s=zinan header.b=xf915QXl; spf=pass (google.com: domain of luke@dashjr.org designates 2001:470:88ff:2f::1 as permitted sender) smtp.mailfrom=luke@dashjr.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dashjr.org Received: from zinan.dashjr.org (zinan.dashjr.org. [2001:470:88ff:2f::1]) by gmr-mx.google.com with ESMTP id d75a77b69052e-4db0caa0080si681411cf.3.2025.09.25.07.33.25 for ; Thu, 25 Sep 2025 07:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of luke@dashjr.org designates 2001:470:88ff:2f::1 as permitted sender) client-ip=2001:470:88ff:2f::1; Received: from [1.2.3.4] (redacted.redacted [1.2.3.4]) (Authenticated sender: mailrelay) by zinan.dashjr.org (Postfix) with ESMTPSA id E63AC38A00FF for ; Thu, 25 Sep 2025 14:33:18 +0000 (UTC) X-Hashcash: 1:23:250925:bitcoindev@googlegroups.com::Our8LaHHvG0DkXr9:gviL Message-ID: Date: Thu, 25 Sep 2025 10:33:11 -0400 MIME-Version: 1.0 Subject: Re: [bitcoindev] [BIP Proposal] Mempool Validation and Relay Policies via User-Defined Scripts To: bitcoindev@googlegroups.com References: Content-Language: en-US, en-GB From: Luke Dashjr Autocrypt: addr=luke@dashjr.org; keydata= xjMEaFluDBYJKwYBBAHaRw8BAQdA8ciTLjjpcVVfd6BZLTGfceA0lWpJP52catbbacgToV3N Nkx1a2UgRGFzaGpyIChPcmRpbmFyeSBjb21tdW5pY2F0aW9uKSA8bHVrZUBkYXNoanIub3Jn PsKYBBMWCgBBFiEEX2gZzRn0MRDD65wKZ6lXXEKSsmwFAmhZbgwCGwMFCQHhM4AFCwkIBwIC IgIGFQoJCAsCBBYCAwECHgcCF4AACgkQZ6lXXEKSsmwalwD3e5U8wZ627LZy3OGaga/H/EXe WIqAAwNY8W3C+droyAEAq/JO0xw4EDapLcU2H5Ep2fn5cEpr3LUiRREiQuCJygXOOARoWW4M EgorBgEEAZdVAQUBAQdARTl7PMQ4q8Oeq9nZNLC82YefoTeqaW1uuCKnVd0Iki8DAQgHwn4E GBYKACYWIQRfaBnNGfQxEMPrnApnqVdcQpKybAUCaFluDAIbDAUJAeEzgAAKCRBnqVdcQpKy bODeAP9+r1dX/Hwymn14laDxUP35Glh57T+750RGoz+mroHn/gEA6qKd0qxjJoxz8LUO6JPy Lx27XfEefvsgUzMbFaiMuAo= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed X-Original-Sender: luke@dashjr.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass (test mode) header.i=@dashjr.org header.s=zinan header.b=xf915QXl; spf=pass (google.com: domain of luke@dashjr.org designates 2001:470:88ff:2f::1 as permitted sender) smtp.mailfrom=luke@dashjr.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dashjr.org Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -0.8 (/) On 9/24/25 14:18, Aiden McClelland wrote: > I'd like to share for discussion a draft BIP to allow for a modular > mempool/relay policy: https://github.com/bitcoin/bips/pull/1985 Javascript implementations are notoriously bad at safe sandboxing. The most well-maintained, V8, has security vulnerabilities fixed nearly every month. Additionally, using the filesystem as such is a "power user" task, while many people running nodes are (or should be) ordinary end users who don't necessarily understand these concepts. I think a better path forward would be some kind of simple domain-specific language. This way it could be designed to make abuse (eg, for censorship) difficult, have an end-user friendly interface, and allow for transparent native optimisations (or even profile at runtime to reorder classifiers as optimal for the fastest reject). However, I do understand this increases the complexity significantly, and so your concept may be "good enough" in practice, at least as an initial proof-of-concept. But I would finish and test that POC in the real world first, before exploring a BIP for the interface. Luke -- You received this message because you are subscribed to the Google Groups "Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoindev+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/b5688bf9-f872-4655-ae68-8876348479e1%40dashjr.org.