Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id C87A73525 for ; 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 ; Thu, 2 May 2019 23:35:19 +0000 (UTC) Received: by mail-oi1-f171.google.com with SMTP id j9so2380894oie.10 for ; 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> <1019ea57-7240-2dc7-8357-970223278e3d@gmail.com> <6b8f2a91-af73-4d66-1b90-51acd4ce217c@gmail.com> In-Reply-To: <6b8f2a91-af73-4d66-1b90-51acd4ce217c@gmail.com> From: Pieter Wuille Date: Thu, 2 May 2019 16:35:06 -0700 Message-ID: To: Aymeric Vitte , Bitcoin Protocol Discussion 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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