`signrawtransactionwithwallet` produces invalid Schnorr signatures
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- blockchain, testing
Hướng nghiên cứu
Bắt đầu với test/functional/wallet_taproot.py và chạy chuỗi createrawtransaction, fundrawtransaction, signrawtransactionwithwallet và sendrawtransaction được nêu. Kiểm tra giao dịch hoàn chỉnh và các giá trị witness được báo cáo; issue được giải quyết khi giao dịch đã ký được chấp nhận thay vì thất bại với Invalid Schnorr signature.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 1.2k
- Fork
- 418
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 13
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ElementsProject/elements
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
ElementsProject/elements#1555 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
ElementsProject/elements#1521 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
ElementsProject/elements#1516 · 5 bình luận ·
-
Compilation error on WSL Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ElementsProject/elements#1502 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
ElementsProject/elements#1500 · 2 bình luận ·
Tất cả issue của ElementsProject/elements
Issue tương tự
-
[CI] Nightly Clang build broken: structured binding captured in a lambda in FileDataSource.cpp Đang mởbug build
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
facebookincubator/velox#19194 ·
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Đang mởfuzz
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ClickHouse/ClickHouse#122114 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
module/agent platform/macos type/bug/regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement PyCDE
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100