You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FUZZ=rpc in utxoupdatepsbt Assertion `tweaked' failed in SignMuSig2 #34201
I think what's happening here is that invalid pubkeys are passed as MuSig2 aggregate and participants. I've updated PR #34010 by adding the test case from this issue.
Activity
rkrux commentedon Jan 5, 2026
Is this a valid PSBT? I get the following error when I try to decode it.
➜ ~ bitcoincli decodepsbt dXR4b3VwZGF0ZXBzYnRcIHBzYnT/AQCjICAgIAMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIP///yAgICAgICAgICAgICAgICAgICAgICAgICAgICD///8gICAgIAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIP////////8gACAgICADICAgICAgICADICAgICAgICAgICAAICAgICAgICAAICAgIAABASsg/yAgICAgICJRICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIhoCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAClAiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/ICAgICAgICAgICAgICAgICAgICAgAAAAAAAA7f//ICAgIA== error code: -22 error message: TX decode failed Invalid PSBT magic bytes: unspecified iostream_category errormaflcko commentedon Jan 5, 2026
This is a fuzz input, if you want the psbt, you can add a `std::cout<<request.params[0].get_str()<<'\n'; to the rpc. This will give:
rkrux commentedon Jan 5, 2026
Oh interesting, thanks for clarifying.
rkrux commentedon Jan 5, 2026
I think what's happening here is that invalid pubkeys are passed as MuSig2 aggregate and participants. I've updated PR #34010 by adding the test case from this issue.
The decoded PSBT from this input #34201 (comment):
decode PSBT on master that doesn't throw error but the above linked PR will
➜ src git:(master) ✗ bitcoincli decodepsbt cHNidP8BAKMgICAgAyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAg////ICAgICAgICAgICAgICAgICAgICAgICAgICAgIP///yAgICAgACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg/////////yAAICAgIAMgICAgICAgIAMgICAgICAgICAgIAAgICAgICAgIAAgICAgAAEBKyD/ICAgICAgIlEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiGgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACECICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAAAAA= { "tx": { "txid": "78aa55eafa6998eede2cfbde74e07b971c848d5e087033de9f0c934ed59ad775", "hash": "78aa55eafa6998eede2cfbde74e07b971c848d5e087033de9f0c934ed59ad775", "version": 538976288, "size": 163, "vsize": 163, "weight": 652, "locktime": 538976288, "vin": [ { "txid": "2020202020202020202020202020202020202020202020202020202020202020", "vout": 538976288, "scriptSig": { "asm": "", "hex": "" }, "sequence": 4294967072 }, { "txid": "20ffffff20202020202020202020202020202020202020202020202020202020", "vout": 538976288, "scriptSig": { "asm": "", "hex": "" }, "sequence": 538976288 }, { "txid": "ffffffff20202020202020202020202020202020202020202020202020202020", "vout": 553648127, "scriptSig": { "asm": "", "hex": "" }, "sequence": 538976288 } ], "vout": [ { "value": 23148855308.18453536, "n": 0, "scriptPubKey": { "asm": "[error]", "desc": "raw(202020)#a84sa0nu", "hex": "202020", "type": "nonstandard" } }, { "value": 23148855308.18453536, "n": 1, "scriptPubKey": { "asm": "", "desc": "raw()#58lrscpx", "hex": "", "type": "nonstandard" } }, { "value": 23148855308.18453536, "n": 2, "scriptPubKey": { "asm": "", "desc": "raw()#58lrscpx", "hex": "", "type": "nonstandard" } } ] }, "global_xpubs": [ ], "psbt_version": 0, "proprietary": [ ], "unknown": { }, "inputs": [ { "witness_utxo": { "amount": 23148855308.18510624, "scriptPubKey": { "asm": "1 2020202020202020202020202020202020202020202020202020202020202020", "desc": "addr(bcrt1pyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsqm5s4vx)#uxtlp4pp", "hex": "51202020202020202020202020202020202020202020202020202020202020202020", "address": "bcrt1pyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqszqgpqyqsqm5s4vx", "type": "witness_v1_taproot" } }, "musig2_participant_pubkeys": [ { "aggregate_pubkey": "020000000000000000000000000000000000000000000000000000000000000000", "participant_pubkeys": [ "022020202020202020202020202020202020202020202020202020202020202020" ] } ] }, { }, { } ], "outputs": [ { }, { }, { } ] }Also, I get "Access is denied to this issue" error when I open this link. How can I see this issue?
Merge #34010: psbt: detect invalid MuSig2 pubkeys in deserialization
Merge #34219: psbt: validate pubkeys in MuSig2 pubnonce/partial sig d…
Merge bitcoin/bitcoin#34219: psbt: validate pubkeys in MuSig2 pubnonc…
Merge bitcoin/bitcoin#34219: psbt: validate pubkeys in MuSig2 pubnonc…
Merge bitcoin/bitcoin#34219: psbt: validate pubkeys in MuSig2 pubnonc…