Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`signrawtransactionwithwallet` produces invalid Schnorr signatures

オープン
#1,238 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, python

調査の方向性

test/functional/wallet_taproot.py から始め、示されている createrawtransaction、fundrawtransaction、signrawtransactionwithwallet、sendrawtransaction のシーケンスを実行します。報告された完全なトランザクションと witness の値を調べます。署名済みトランザクションが Invalid Schnorr signature で失敗するのではなく受け入れられれば、issue は解決です。

索引モデルが issue の本文から書いたものです。

説明

If you try modifying the wallet_taproot.py functional test like so:

diff --git a/test/functional/wallet_taproot.py b/test/functional/wallet_taproot.py
index 123a6a40893..f37fc906549 100755
--- a/test/functional/wallet_taproot.py
+++ b/test/functional/wallet_taproot.py
@@ -275,6 +275,12 @@ class WalletTaprootTest(BitcoinTestFramework):
             self.nodes[0].generatetoaddress(1, self.boring.getnewaddress())
             test_balance = int(self.rpc_online.getbalance()['bitcoin'] * 100000000)
             ret_amnt = random.randrange(100000, test_balance)
+            # Start...
+            rawret = self.rpc_online.createrawtransaction([], [{self.boring.getnewaddress(): Decimal(ret_amnt) / 100000000}])
+            rawret = self.rpc_online.fundrawtransaction(rawret, {"changePosition":1, "subtractFeeFromOutputs":[0]})
+            rawret = self.rpc_online.signrawtransactionwithwallet(rawret['hex'])
+            self.rpc_online.sendrawtransaction(rawret['hex'])
+            # ...end
             res = self.rpc_online.sendtoaddress(address=self.boring.getnewaddress(), amount=Decimal(ret_amnt) / 100000000, subtractfeefromamount=True)
             self.nodes[0].generatetoaddress(1, self.boring.getnewaddress())
             assert(self.rpc_online.gettransaction(res)["confirmations"] > 0)

You will get a failure of the form

test_framework.authproxy.JSONRPCException: non-mandatory-script-verify-flag (Invalid Schnorr signature) (-26)

on the sendrawtransaction line. You can verify by printing intermediate values that the output of signrawtransactionwithwallet shows complete: true and that the transaction indeed has something Schnorr-signature-shaped in its witness.

主要言語
C++
スター
1.2k
フォーク
418
平均マージ
1日 12時間
マージ済み PR(30日)
13

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ElementsProject/elements のほかの issue

ElementsProject/elements の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。