如何在POW区块链中安全地实施Deadpool?

发布于 2025-01-26 16:43:40 字数 735 浏览 4 评论 0原文

想象一下,您有一个区块链,其中工作方案是整数分解的。有一个opcode需要两个整数n,m,如果m∉{0,1,n}和n mod m月份返回true。现在,假设我们想要一个数字,例如mg。它可能是坎宁安的数字,一个出色的数字或任何其他有兴趣知道其分解的数字。

我们可以创建一个事务,其中交易资金的锁定脚本是以MG作为第一个输入的OPCODE。这样,解锁脚本只是mg的任何非平凡因素。这将使区块链上的任何人都可以对这种分解获得奖励。

两个问题:中型攻击和重组攻击。

矿工在中间攻击:通过解锁脚本进行交易的矿工将能够看到视线中的因素,并用将资金发送到钱包的交易中的交易中而不是求解器的。

重组攻击:如果区块链硬币的价值很高,也有动力攻击通过以更换交易的重新解决该块来挖掘求解器交易的区块(攻击者(攻击者) ),并尝试从这个新块创建更长的链条。

因此,问题变成了,如何在此区块链中安全地提交解决方案?是否可以在两项交易中进行,还是需要三个交易?是否有任何解决此问题的区块链?

谢谢。

注1:我选择与此主题最相关的标签。似乎比特币堆栈交换严格用于比特币。

注2:这个问题已发布在密码堆栈交换上,以获取有关可能有助于实施此问题的加密机制的想法。它也在此处发布,因为有一个区块链标签,并且可能有实现详细信息和解决方案,可以使用当前的OpCode Set以及此新的OpCode来实现。看来这种社区堆栈交易所最适合后者。

Imagine you have a blockchain where the Proof of Work scheme is integer factorization. There is an opcode that takes two integers N,M where it returns true if M∉{0,1,N} and N mod M ≡ 0. Now, suppose we want a number factored, say Mg. It could be a Cunningham number, a brilliant number or any other number where there is an interest in knowing its factorization.

We can create a transaction where the locking script for the funds of the transaction is this opcode with Mg as the first input. This way the unlocking script is just any non-trivial factor of Mg. This would allow anyone on the blockchain to claim the reward for this factorization.

Two issues: miner-in-the-middle attack and reorganization attack.

Miner-in-the-Middle Attack: The miner who receives a transaction with the unlocking script will be able to see the factor in plain sight and replace that transaction with one where the funds are sent to their wallets instead of the solver's.

Reorganization Attack: If the value of the blockchain's coin is high there is also an incentive to attack the block in which a solver transaction was mined by re-solving that block with a replaced transaction accrediting themselves(the attacker) and attempting to create a longer chain from this new block.

So,the question becomes, how can solutions be submitted safely in this blockchain? Is it possible to do it in two transactions, or are three transactions required? Is there any blockchain that has solved this problem already?

Thank you.

Note 1: I choose tags that are the most related to this topic. It also seems like the bitcoin stack exchange is strictly for bitcoin.

Note 2: This question was posted on the cryptography stack exchange to get ideas on cryptographic mechanisms that might help implement this. It is also posted here because there is a blockchain tag and there may be implementation details and solutions which may be achieved with the current opcode set plus this new opcode. It seems this community stack exchange is the most suited for the latter.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文