Tier Nolan [ARCHIVE] on Nostr: 📅 Original date posted:2020-08-17 📝 Original message:On Mon, Aug 17, 2020 at ...
📅 Original date posted:2020-08-17
📝 Original message:On Mon, Aug 17, 2020 at 6:04 AM ZmnSCPxj <ZmnSCPxj at protonmail.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20200817/a3fd8bd8/attachment.html>
Published at
2023-06-07 18:26:34Event JSON
{
"id": "a3ab26d0681c69346610d012ceb6bc77b24edc9fedc0a4799db9493af1a558ca",
"pubkey": "46986f86b97cc97829a031b03209644d134b939d0163375467f0b1363e0d875e",
"created_at": 1686162394,
"kind": 1,
"tags": [
[
"e",
"d975d0e94c587e8c2426d51dc6f0148b03b8ba3d81a52dbc71cd479a2959485f",
"",
"root"
],
[
"e",
"27984a871b615f129a8c6f6171e79187e19a14399233c6b4248925e472483b9c",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2020-08-17\n📝 Original message:On Mon, Aug 17, 2020 at 6:04 AM ZmnSCPxj \u003cZmnSCPxj at protonmail.com\u003e wrote:\n\n\u003e Taproot MAST to the rescue.\n\u003e\n\nAnother option would be a binary payout\n\nYou pay 64 + 32 + 16 + 8 + 4 + 2 + 1 as outputs. The outputs are\nenabled/disabled based on the diff value. This would require division and\nalso binary operators.\n\nD = (int) ((100 * diff) / (1 trillion))\n\nOutput 0: 1.28: If (D \u0026 128) then pay Alice otherwise Bob\nOutput 0: 0.64: If (D \u0026 64) then pay Alice otherwise Bob\nOutput 0: 0.32: If (D \u0026 32) then pay Alice otherwise Bob\nOutput 0: 0.16: If (D \u0026 16) then pay Alice otherwise Bob\nOutput 0: 0.8: If (D \u0026 8) then pay Alice otherwise Bob\nOutput 0: 0.4: If (D \u0026 4) then pay Alice otherwise Bob\nOutput 0: 0.4: If (D \u0026 4) then pay Alice otherwise Bob\nOutput 0: 0.4: If (D \u0026 4) then pay Alice otherwise Bob\n\nThis has log performance in terms of the number of ticks like the MAST\nsolution.\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20200817/a3fd8bd8/attachment.html\u003e",
"sig": "d2006836f2994362295644a19fc30e99e7a51679b9a049b05ddc421bf28318ce5b849f9dd543215bc795e3fdc8d92837ead43658aeea92bdbb81730ec6cdfeb5"
}