Skip to content

Fix RPC return errors for psbt and invalid rangeproofs - #1593

Merged
delta1 merged 7 commits into
ElementsProject:masterfrom
tomt1664:assort_fixes
Sep 1, 2026
Merged

Fix RPC return errors for psbt and invalid rangeproofs#1593
delta1 merged 7 commits into
ElementsProject:masterfrom
tomt1664:assort_fixes

Conversation

@tomt1664

@tomt1664 tomt1664 commented Sep 1, 2026

Copy link
Copy Markdown
Member

Fixes for a number of issues with RPC errors for invalid PSBTs and amounts/rangeproofs.

@tomt1664 tomt1664 changed the title Fix RPC return errors for psbt and invalid rangeproofs. Fix RPC return errors for psbt and invalid rangeproofs Sep 1, 2026

@delta1 delta1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just 1 comment

Comment thread src/wallet/wallet.cpp Outdated
Comment thread src/blind.cpp Outdated

@delta1 delta1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a9db3b1; tested locally

@delta1
delta1 merged commit 4ddaefc into ElementsProject:master Sep 1, 2026
6 of 7 checks passed
tomt1664 pushed a commit to tomt1664/elements that referenced this pull request Sep 2, 2026
…d rangeproofs

a9db3b1 Add startup warning for signed-blocks parent chain (Tom Trevethan)
246c5ab Add virtual desctructor to CChainParams (Tom Trevethan)
779e71f PAK enforcement on confidential nAsset (Tom Trevethan)
ffd91c0 PartiallySignedTransaction::SetupFromTx indexes vtxinwit checked (Tom Trevethan)
84a05e3 check pubkey validity in tweakfedpegscript to prevent assert failure (Tom Trevethan)
3a8dec1 Return error for psbt if explicit amounts/assets deleted (Tom Trevethan)
4e5ca94 Return error for invalid rangproof amounts (Tom Trevethan)

Pull request description:

  Fixes for a number of issues with RPC errors for invalid PSBTs and amounts/rangeproofs.

ACKs for top commit:
  delta1:
    ACK a9db3b1; tested locally

Tree-SHA512: bf35348a5fad30e0f1f2b3caa2ec35ec521b583155e97f3a5f2504a3d70b41677f215fc01b28ccd30706ff5a7d021afb74c110a2c8f270942f5cba344544a55d
tomt1664 added a commit that referenced this pull request Sep 3, 2026
f80fb30 Merge #1589: simplicity: update subtree to abede47e (merge-script)
5b388c2 Merge pull request #1577 from Abdullah1738/feat/effective-fee-asset (Tom Trevethan)
48456e3 Add test that sighash midstate cache treats the SIGHASH_RANGEPROOF bit as part of its key (Tom Trevethan)
d47af63 Merge #1584: script: add and default to SIGHASH_ALL_WITH_RANGEPROOF for pre-taproot signing (merge-script)
7c23bd1 blind: reject empty surjection-target set in SurjectOutput (Byron Hambly)
3e11e03 blindpsbt: require genuine commitments in VerifyBlindValueProof (Byron Hambly)
99e9f25 blindpsbt: require both range bounds to match claim in VerifyBlindValueProof (Byron Hambly)
8a08453 validation: always validate and retain dynafed header block_height (Byron Hambly)
4309282 dynafed: require at least four-fifths approval for parameter transition (Byron Hambly)
6a49991 blindpsbt: refuse to blind a PSET output with no amount (Byron Hambly)
0ce3c24 blindpsbt: reject off-curve blinding pubkey before ECDH (Byron Hambly)
2391041 blindpsbt: return error instead of asserting on surjection proof failure (Byron Hambly)
6253d7e fix: range proof cache bind to asset and scriptpubkey (Byron Hambly)
3d7134f Merge #1593: Fix RPC return errors for psbt and invalid rangeproofs (merge-script)

Pull request description:

ACKs for top commit:
  delta1:
    ACK f80fb30; tested locally

Tree-SHA512: 42995e5b4842ce9694d9d5d30764230b774db24cda40d825742a174d564761e725a8323362404ee9653495936ab850c9933075b7ad924caa73768d0980bcbf96
psgreco pushed a commit to psgreco/elements that referenced this pull request Sep 3, 2026
…d rangeproofs

a9db3b1 Add startup warning for signed-blocks parent chain (Tom Trevethan)
246c5ab Add virtual desctructor to CChainParams (Tom Trevethan)
779e71f PAK enforcement on confidential nAsset (Tom Trevethan)
ffd91c0 PartiallySignedTransaction::SetupFromTx indexes vtxinwit checked (Tom Trevethan)
84a05e3 check pubkey validity in tweakfedpegscript to prevent assert failure (Tom Trevethan)
3a8dec1 Return error for psbt if explicit amounts/assets deleted (Tom Trevethan)
4e5ca94 Return error for invalid rangproof amounts (Tom Trevethan)

Pull request description:

  Fixes for a number of issues with RPC errors for invalid PSBTs and amounts/rangeproofs.

ACKs for top commit:
  delta1:
    ACK a9db3b1; tested locally

Tree-SHA512: bf35348a5fad30e0f1f2b3caa2ec35ec521b583155e97f3a5f2504a3d70b41677f215fc01b28ccd30706ff5a7d021afb74c110a2c8f270942f5cba344544a55d
(cherry picked from commit 3d7134f)
delta1 added a commit that referenced this pull request Sep 6, 2026
6c2c562 build: fix depends Qt download link (Pablo Greco)
3c8b453 Merge #1593: Fix RPC return errors for psbt and invalid rangeproofs (merge-script)
45af24e DecomposePeginWitness: fix deserialization flags for MerkleBlock proof (Byron Hambly)
60488fa Merge #1589: simplicity: update subtree to abede47e (merge-script)
f1f9a3f blind: reject empty surjection-target set in SurjectOutput (Byron Hambly)
11f8ac6 blindpsbt: require genuine commitments in VerifyBlindValueProof (Byron Hambly)
db05523 blindpsbt: require both range bounds to match claim in VerifyBlindValueProof (Byron Hambly)
6257051 dynafed: require at least four-fifths approval for parameter transition (Byron Hambly)
53302be blindpsbt: refuse to blind a PSET output with no amount (Byron Hambly)
dd97f13 blindpsbt: reject off-curve blinding pubkey before ECDH (Byron Hambly)
87327c7 blindpsbt: return error instead of asserting on surjection proof failure (Byron Hambly)
212c43f fix: range proof cache bind to asset and scriptpubkey (Byron Hambly)

Pull request description:

  All clean cherry picks from 23.x branch, in preparation for 23.3.4rc2

ACKs for top commit:
  tomt1664:
    ACK 6c2c562 tested locally
  delta1:
    ACK 6c2c562

Tree-SHA512: 54129b93b1ce801dea0c427d69f74ada53df3584f9e4d05eaea70d0040cf28db9c36a83dd42d40a48031747bf757d27a316f8d7b88fb97756b6e4acd777f601e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants