Return-Path: Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id D8A7AC0051 for ; Mon, 17 Aug 2020 21:55:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BE7C220450 for ; Mon, 17 Aug 2020 21:55:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IgyliKxg5kPN for ; Mon, 17 Aug 2020 21:55:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by silver.osuosl.org (Postfix) with ESMTPS id 4E8C720414 for ; Mon, 17 Aug 2020 21:55:41 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id r15so6463375wrp.13 for ; Mon, 17 Aug 2020 14:55:41 -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; bh=0kdLr4rddNTDic4+D19IefsrOaeDIPib3WYv3Lrx5Ss=; b=WLFGNwSmbHyDPpCGQLaQTXGTsqqDhvyNKfN1dval18XI+r7vqpEnB388vUvbxHdhvD PT4Qoly4JSPu12q/wWQ07qDN53tLN9dgmKvVcjk2V785udYE1WUPhJJXoQKNcyk1K8j6 dkrmFamekvnylDGD+7S7AqInjzkYoy63zMfn58NB2AluxYw8sWIP9Yv4QmGodMKOt+mo WlzqnDdXu/knV3h9B+Jejvd7ddcN4K2/BK4AKTXKz2oA8OaAac/GksrOz/walrxfytmF BbWs6O994Tommd5rWP1Cq5WSFW3x8Z6QOVImb9n8QuQJTRJFQs3NKSSAjCnGYh2h1b6a 6VnQ== 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; bh=0kdLr4rddNTDic4+D19IefsrOaeDIPib3WYv3Lrx5Ss=; b=LXJr9zp1j7fV5v/QzaYcqLh29rMGSIWtelZA+1NI2Vmsr3s3yyu9D1k2Xk/HgoAdUm LLjpo0Wj7UVSLqPMb04sqpHvXEK/mpxRO5pe2R7l9KRn/bfDLUhVWA9CUudDJHnvI619 kmIV3nAterKET35g71DG8uCwnCAU4pi5enRLC8hsHc2kUFBRZDXZGIOR3JXAVh72PU+G ROoA1SeQjA0h/HLIESVDAGWQTJyY7irHQ9+WqppcQbIIm1ErolBqcW6446lDoKRI095q D8c3MBzXvsAcraW+nJVcgdJSg3hcB7Od/GQ0hp6pEYDY7nTuO1+iO6x8hlcWXLFkUUOI Mvng== X-Gm-Message-State: AOAM5310j+BAlypvVf1YUl8cKeoLgWvPwjxgoonJ/oP3jPpT+MYOyarc vV/Rlhk/RBtEvqbLqX6IOig0zfEbrf83wFSDLv8g3dAvMwc= X-Google-Smtp-Source: ABdhPJzr8LtUASl4zI2y9kEDgFlkmRlgK0simvCWlShRAaqDcjbq802TcivELZgLV/C22MPSJJPnejnLoE+g/8BtVcI= X-Received: by 2002:a05:6000:1203:: with SMTP id e3mr17572664wrx.324.1597701339705; Mon, 17 Aug 2020 14:55:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tier Nolan Date: Mon, 17 Aug 2020 22:55:04 +0100 Message-ID: To: Bitcoin Protocol Discussion Content-Type: multipart/alternative; boundary="000000000000cf775305ad19d414" Subject: Re: [bitcoin-dev] reviving op_difficulty X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2020 21:55:43 -0000 --000000000000cf775305ad19d414 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 17, 2020 at 6:04 AM ZmnSCPxj wrote: > Taproot MAST to the rescue. > Another option would be a binary payout You pay 64 + 32 + 16 + 8 + 4 + 2 + 1 as outputs. The outputs are enabled/disabled based on the diff value. This would require division and also binary operators. D = (int) ((100 * diff) / (1 trillion)) Output 0: 1.28: If (D & 128) then pay Alice otherwise Bob Output 0: 0.64: If (D & 64) then pay Alice otherwise Bob Output 0: 0.32: If (D & 32) then pay Alice otherwise Bob Output 0: 0.16: If (D & 16) then pay Alice otherwise Bob Output 0: 0.8: If (D & 8) then pay Alice otherwise Bob Output 0: 0.4: If (D & 4) then pay Alice otherwise Bob Output 0: 0.4: If (D & 4) then pay Alice otherwise Bob Output 0: 0.4: If (D & 4) then pay Alice otherwise Bob This has log performance in terms of the number of ticks like the MAST solution. --000000000000cf775305ad19d414 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Aug 17, 2020 at 6:04 AM ZmnSC= Pxj <ZmnSCPxj@protonmail.com<= /a>> wrote:
Taproot MAST to the rescue.



--000000000000cf775305ad19d414--