Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.
Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.
53/100 average clarity
30Strong · 80–100
77Adequate · 60–79
108Thin · 40–59
70Opaque · 0–39
46security candidates with opaque commit messaging
This commit adds security checks to SeedSigner, an offline Bitcoin signing device, to prevent malicious or buggy wallet software from tricking users into sending change to derivation paths their wallet will never scan. It now verifies that…
New fatal error class PSBTChangeDerivationPathError for non-standard change derivation pathsNew fatal error class PSBTUnverifiableMixedInputBasePathsError for unverifiable mixed-base-path segwit v0 inputsChange output base path must match a verified input base path
This commit hardens SeedSigner's PSBT (Bitcoin transaction) parser so it no longer trusts a coordinator's claim that an input belongs to your seed. Before, the device only checked that your seed could derive the claimed key. Now it also re…
New attack-level exception: PSBTInputOwnershipContradictionError when an input claims the seed's key but the committed script does not use itInput ownership now verified by rebuilding the scriptPubKey from the claimed key rather than trusting PSBT bip32 derivationsTaproot key-path spends verified by re-applying the merkle-root tweak to the internal key and comparing to the committed output
This commit fixes a security flaw in SeedSigner, a small hardware wallet used to sign Bitcoin transactions. The bug could let a malicious transaction coordinator trick the device into accepting change money sent to a wallet path the user n…
New security check explicitly described as preventing a malicious coordinator from anchoring change to an unmonitored derivation pathNew exception class PSBTUnverifiableMixedInputBasePathsError with Warning-grade refusalUI flow now redirects to a blocking warning screen instead of allowing signing
This commit fixes a security check in SeedSigner, a small hardware-wallet-like device used to sign Bitcoin transactions. Previously, when deciding whether a change output's address was suspiciously far from the user's known addresses, the …
Fixes a window-widening attack against change-output verificationChange-output address index check now uses smallest input index instead of largestAdds hardened-input edge-case handling (window measured from 0)
This commit only adds a new test case to the project's test suite. It does not change any production code. The new test checks that the existing PSBT parser correctly rejects a specific kind of suspicious change output (one placed at a dee…
Adds defensive test coverage for PSBT change-output derivation-path validationRelates to preventing a coordinator with an account xpub from routing change to an unexpected deeper path
This commit adds a safety check to SeedSigner that refuses to sign a Bitcoin transaction if the change output is being sent to a derivation path the user's wallet is unlikely to scan. Before this change, an attacker could trick a user into…
New attack-level exception PSBTChangeDerivationPathError for change sent to an unscanned derivation pathNew warning WARNING__CHANGE_ADDRESS_INDEX_BEYOND_WINDOW for change address indices far past spent indicesNew UI screen PSBTUnexpectedChangeDerivationPathView with DireWarningScreen and forced discard
This commit is a code cleanup, not a security fix. It consolidates several warning screens shown before signing a Bitcoin transaction into a single reusable view. The warnings themselves—such as 'high fee' and 'no change'—still behave the …
Refactor only: no change to validation, cryptography, or signing logicUser-facing warning text and flow remain equivalentAdds unit tests covering high-fee, no-change, and combined warning sequences
This commit only reorganizes test code. It adds a helper function that replaces twelve nearly identical blocks of test setup code, with no changes to the actual wallet or signing logic that users rely on.
This commit only moves and rewrites documentation comments inside the code. It does not change how the program behaves, what it checks, or how it responds to malicious data. The logic for detecting and holding security findings in PSBT par…
This commit adds security checks to SeedSigner, a small offline Bitcoin signing device. Before the change, a malicious or buggy wallet coordinator could give the device a transaction where an input's hidden script did not match the public …
New validation logic compares supplied witness/redeem scripts against scriptPubKey hashesNew exception classes explicitly label script mismatch as an attack and missing/extraneous scripts as correctness problemsUI flow terminates signing before rendering transaction details when a script check fails
This commit simply adds Swahili as a new language option in the SeedSigner settings. It is a localization (translation) change with no security relevance.
This commit fixes how SeedSigner reads the extra data attached to OP_RETURN Bitcoin transaction outputs. Previously the code always assumed the data was introduced by OP_PUSHDATA1, which meant it would misread or crash on the more common d…
Fixes incorrect parsing of OP_RETURN data due to assumed push opcodeAdds robust handling for direct push, OP_PUSHDATA1/2/4, and OP_0-OP_16Introduces explicit malformed-script rejection instead of silent mis-parsing
This update makes SeedSigner refuse Bitcoin transaction files (PSBTs) where the outgoing amounts are larger than the incoming amounts. Before the fix, the device would have accepted such impossible transactions and shown the user a negativ…
Input validation: rejects PSBTs with mathematically impossible fee valuesUser-facing safeguard: prevents confusing negative fee from reaching transaction review screensNew exception class with clear semantics (PSBTNegativeFeeError)
This commit only updates a code comment to remove an outdated claim. The actual security check for negative fees remains unchanged, and a prior code change already verifies input amounts before outputs are parsed. There is no functional se…
This commit fixes a security flaw in SeedSigner, a small offline Bitcoin signing device. Previously, when a user scanned a transaction to sign, the device added up the input amounts exactly as a malicious or compromised computer/coordinato…
Fixes a fee-display manipulation vulnerability where a compromised coordinator could understate input amounts to hide excessive real feesAdds explicit verification of each input's amount against the prior transaction before totaling inputsRaises dedicated security exceptions (PSBTInputAmountVerificationError, PSBTMissingInputUtxoError) and blocks the signing flow
This commit only rewrites the explanatory text (docstrings) inside test code. No actual program logic, security checks, or test behavior changed. It is a documentation cleanup within tests.
This commit only changes test code. It tightens some Python assertions (using 'is False' instead of '== False') and expands one test to run across more test fixtures. There is no change to the actual wallet or PSBT parsing logic that users…
This commit only changes a test file. It removes a small helper method called parse() and replaces its calls with the same one-line PSBTParser constructor call written out directly. There is no change to the actual wallet/security code tha…
✓ Descriptive subject✓ Provides an explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Low 41/100
This commit tightens validation in a Bitcoin PSBT (Partially Signed Bitcoin Transaction) parser. It now rejects PSBTs that contain an input with no UTXO data at all, because without that data the wallet cannot verify how much bitcoin that input is worth. Previously the code silently skipped such inputs, which could let a crafted PSBT understate the amount being spent or hide fee details from the user. The change is a defensive hardening fix, not a full security redesign.
Security candidateApply suggestion from @kdmukaiby Nick Klockenga · 9b608437 · Oct 20, 2026 · 1 fileMessage 50 · ThinModerate 57Details
✓ Descriptive subject✓ Provides an explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 57/100
This commit is a minor documentation/comment cleanup in the code that checks whether a Bitcoin transaction's claimed previous transaction data actually matches the real one. The code logic itself does not appear to change; only the explanatory comments are rewritten to be clearer about why a mismatch is treated as an attack. Because no actual code behavior changes, this is unlikely to be a security fix on its own, but it touches code that is security-relevant (preventing a malicious coordinator from lying about how much bitcoin is being spent).
Security candidateReword the PSBTInputAmountVerificationError, parse() and _get_script_type() docstringsby newtonick · efc92cac · Oct 17, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · newtonick
Reword the PSBTInputAmountVerificationError, parse() and _get_script_type() docstrings
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing boundarydefensive validationseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only rewrites comments and docstrings in a single Python file. No code logic, function behavior, or security checks were changed. It makes documentation more precise about when a PSBT input amount is considered unverified or suspicious, but the underlying behavior remains the same.
Security candidateReword PSBTMissingInputUtxoView text based on feedbackby newtonick · 5bfbe0b2 · Oct 17, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · newtonick
Reword PSBTMissingInputUtxoView text based on feedback
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing boundaryseed or entropy pathsigning or wallet path
AI analysis · Informational 15/100
This commit only changes the wording of an on-screen error message shown to users when a transaction is missing information about one of its inputs. It does not alter any security logic, transaction validation, or code behavior. The old message said the transaction 'left out the amount,' and the new message says it is 'missing required data.' This is a user-experience wording improvement based on feedback, not a security fix.
Security candidateRemove the psbt_parser reset from the input verification failure handlerby newtonick · 67e049ef · Oct 17, 2026 · 2 filesMessage 60 · AdequateInformational 24Details
Commit message · newtonick
Remove the psbt_parser reset from the input verification failure handler
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing boundarydefensive validationseed or entropy pathsigning or wallet path
AI analysis · Informational 24/100
This commit removes a safety cleanup that wiped out an internal PSBT parser when the device detected it couldn't verify the bitcoin amounts in a transaction. The change itself is small, but it eliminates a defensive guard that prevented a stale parser from being reused. The accompanying test that documented this defensive behavior was also deleted. The commit message does not explain why removing the cleanup is safe, so the security relevance is unclear from the diff alone.
Security candidateRestructure _verify_input_amounts() around non_witness_utxo and reword its commentsby newtonick · 00ee7714 · Oct 17, 2026 · 1 fileMessage 50 · ThinInformational 12Details
Commit message · newtonick
Restructure _verify_input_amounts() around non_witness_utxo and reword its comments
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 12/100
This commit rewrites the comments and reorders the logic inside a Bitcoin transaction-checking routine. It does not change what the code actually checks or rejects; it only makes the existing checks easier to read and understand. There is no new vulnerability introduced and no security bug fixed.
A claim of ours at the empty path (the master key), on an input or an output, or at a one-level path on an input, is held as PSBTUnsupportedDerivationPathError. No wallet writes an entry at these paths, though embit would sign an input built on the master key. The check runs after the claim loops, so a forged claim in the same input or output is still the one reported.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 66/100
This update hardens a Bitcoin signing device (SeedSigner) against trick transactions. Previously, a malicious or broken PSBT file could claim that the user's master key or an unusually short key path should be used to sign a payment. The device would have accepted that path and could have signed something the user did not expect. Now the software rejects such PSBTs with a clear warning and discards the transaction. The change is defensive: it does not fix a known theft, but it closes a risky edge case where the wrong key could be used.
Security candidateCheck input claims against the committed scriptby kdmukai · e2ad442e · Oct 16, 2026 · 5 filesMessage 68 · AdequateHigh 78Details
Commit message · kdmukai
Check input claims against the committed script
Re-deriving a claimed key proves our seed owns it, not that the input spends with it. Each verified entry must now be a key the input's committed script uses. Only the entries that pass are kept in verified_input_derivation_paths. An entry that fails raises PSBTInputOwnershipContradictionError.
Taproot rebuilds the address with the input's merkle root, the same tweak embit signs with. A failing internal key claim raises the same error when the input supplies its merkle root. It is dropped when a taproot input omits the merkle root. A failing leaf key claim is dropped. An input this seed can sign only through a script path holds PSBTUnsupportedScriptPathError.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · High 78/100
This commit hardens SeedSigner's PSBT parsing so that the device no longer trusts a transaction's claim that one of your keys controls an input. Before this change, a malicious or buggy wallet coordinator could attach one of your real public keys to an input that actually belongs to someone else, making the device think it was signing its own money when it was not. The fix rebuilds each input's spending script from the claimed key and compares it to the script the input commits to on the blockchain. If they do not match, the device now stops with a 'Likely an Attack!' warning instead of continuing. It also adds handling for newer Taproot script-path spends that SeedSigner does not yet support.
Security candidateHold milder psbt findings until the outputs are readby kdmukai · 9d132e82 · Oct 16, 2026 · 2 filesMessage 83 · StrongLow 47Details
Commit message · kdmukai
Hold milder psbt findings until the outputs are read
A false input claim, entries in both derivation path maps, and surplus output entries might each be an honest bug. They are now held in one list instead of raised where found. parse() raises the first one after _parse_outputs, so an output contradiction found later is still the one reported. A held input is set aside (its verified list emptied). A held output counts as a spend without its claims being evaluated.
Input claim verification moves into _parse_inputs. The wrong-seed check moves after it and stands aside while a finding is held. Deletes get_input_fingerprints, which had no callers.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing boundarydefensive validationseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Low 47/100
This commit changes how a Bitcoin signing helper (SeedSigner) handles suspicious but possibly innocent problems in a transaction file (PSBT). Instead of immediately stopping and warning about a minor issue on an input or output, it now 'holds' that concern, finishes reading the outputs, and only reports it if no more serious output-side attack is found. The goal is to make sure a fake-change attack on an output is never hidden behind a milder input problem. It also fixes a case where a malformed PSBT with missing UTXOs was wrongly reported as 'wrong seed'.
Security candidateRefuse an OP_RETURN that is not made of complete pushesby okaybro · 6403723d · Oct 15, 2026 · 5 filesMessage 73 · AdequateModerate 52Details
Commit message · okaybro
Refuse an OP_RETURN that is not made of complete pushes
Bitcoin Core treats an OP_RETURN output as nonstandard unless everything after the opcode is a push. The parser used to display whatever was left when a push ran past the end of the script, or when it met an opcode that is not a push. It now raises PSBTMalformedOpReturnError instead, and the user gets the same plain "Transaction Problem" warning used for other malformed psbts before discarding it.
OP_0, OP_1NEGATE, OP_RESERVED, and OP_1 through OP_16 still count as pushes to Core, so they are kept and the walk carries on past them rather than stopping there.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 52/100
This commit changes how SeedSigner handles unusual OP_RETURN data in Bitcoin transactions. Previously, if the data after an OP_RETURN instruction was malformed, the app would still try to display whatever bytes remained. Now it stops and shows a plain 'Transaction Problem' warning, treating the transaction as malformed and discarding it. This aligns SeedSigner with how Bitcoin Core treats such transactions, and prevents a malformed or crafted OP_RETURN script from influencing what the user sees during transaction review.
Security candidateDrop OP_RETURN test helper parameters that nothing passesby okaybro · 79e22d2d · Oct 15, 2026 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · okaybro
Drop OP_RETURN test helper parameters that nothing passes
`op_return_script`'s `push_opcode` and `create_op_return_psbt`'s `change_amount` and `fee_amount` were never used by any test. The non-minimal encoding cases build their bytes by hand and call `_parse_op_return_payload` directly.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing boundarysigning or wallet path
AI analysis · Informational 15/100
This commit only cleans up unused parameters in a test helper file. It removes optional arguments that no test was actually using, simplifying the code without changing any real behavior. There is no security issue here.
Security candidateClarify the comments around InputScope.verify()by newtonick · 27411667 · Oct 6, 2026 · 1 fileMessage 55 · ThinInformational 14Details
Commit message · newtonick
Clarify the comments around InputScope.verify()
55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 14/100
This commit only rewrites comments in a single file to explain how the existing PSBT input verification logic works. No code behavior is changed, so it does not fix or introduce a security issue on its own.
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only rewords an inline code comment to be clearer and slightly shorter. No actual code logic, behavior, or security checks were changed. The bounds check that protects against an out-of-range transaction output index remains exactly the same.
Security candidateReword the _verify_input_amounts() docstringby newtonick · 5ca043c9 · Oct 5, 2026 · 1 fileMessage 35 · OpaqueInformational 15Details
Commit message · newtonick
Reword the _verify_input_amounts() docstring
35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only rewords a code comment (docstring). It does not change any actual program logic, function behavior, or security checks. The changes clarify that the verification method applies to taproot inputs too, note that taproot is not affected by a known historical fee-bumping bug, and update capitalization. There is no functional security fix or vulnerability introduced.
Security candidateAdd PSBTMissingInputUtxoError for inputs with no utxo to verifyby newtonick · 6605c68c · Oct 5, 2026 · 5 filesMessage 60 · AdequateLow 32Details
Commit message · newtonick
Add PSBTMissingInputUtxoError for inputs with no utxo to verify
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Low 32/100
This commit changes how SeedSigner handles Bitcoin transaction files (PSBTs) that are missing required data about how much an input is worth. Previously, missing input amount data was treated as a suspicious transaction (a potential attack). Now it gets its own, gentler error type and a warning screen that tells the user the transaction left out an input amount, but does not label it as malicious. The user can only discard the transaction. This is a defensive correctness improvement, not a vulnerability fix.
Security candidateTotal verified_input_amount in _verify_input_amounts()by newtonick · 335c11af · Oct 5, 2026 · 4 filesMessage 40 · ThinModerate 59Details
Commit message · newtonick
Total verified_input_amount in _verify_input_amounts()
40/100 · ThinMessage clarity
✓ Specific, descriptive subject! No meaningful explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 59/100
This commit renames and strengthens how SeedSigner totals the amount of bitcoin coming into a transaction. Previously, the wallet summed input amounts in a later step after a separate verification step. The change makes the verified total the only value used for display, so a malicious or buggy coordinator cannot trick the user into thinking a transaction has different inputs or fees than it really does. It is a defensive hardening patch, not a fix for a known active exploit.
Trim input amount explanations duplicated outside _verify_input_amounts()
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only removes explanatory comments from two places in the code. No program logic, validation checks, or security behavior changed. It is a documentation cleanup, not a security fix.
Security candidateReword PSBTInputAmountVerificationFailedView text based on feedbackby newtonick · 5fc0ea62 · Oct 5, 2026 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · newtonick
Reword PSBTInputAmountVerificationFailedView text based on feedback
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing boundarydefensive validationseed or entropy pathsigning or wallet path
AI analysis · Informational 15/100
This commit only changes the wording of a warning message shown to users when a transaction's input amounts cannot be verified. It does not modify any security logic, calculations, or behavior. The change is purely cosmetic/user-experience.
Security candidateKeep PSBTNegativeFeeError's docstring to what a caller needsby okaybro · bf5146e6 · Oct 4, 2026 · 1 fileMessage 90 · StrongInformational 15Details
Commit message · okaybro
Keep PSBTNegativeFeeError's docstring to what a caller needs
The error's docstring argued about a lying coordinator's motives and why the error exists for the user. Like the other PSBTVerificationError subclasses, it now just states the problem and that it is not treated as an attack. The one part of the reasoning that matters, that both totals are the coordinator's own claims, moves to the check that raises it.
90/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Names security-relevant behavior explicitly
Why it was queued
explicit security languagesigning boundarydefensive validationseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only rewrites documentation comments inside the code. It moves some explanatory text from one place to another and shortens a docstring. No program behavior, security checks, or logic were changed.
Security candidateMerge pull request #1046 from kdmukai/2026_09_psbt_nested_singlesig_changeby Nick Klockenga · b2199c68 · Oct 3, 2026 · 2 filesMessage 88 · StrongModerate 68Details
Commit message · Nick Klockenga
Merge pull request #1046 from kdmukai/2026_09_psbt_nested_singlesig_change
[security] Verify nested single sig change that omits its redeem script
88/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol pathmerge-commit duplicate discount
AI analysis · Moderate 68/100
This commit fixes a security bug in how SeedSigner recognizes 'change' outputs on bitcoin transactions when using older nested SegWit single-signature wallets. A change output is change that comes back to your own wallet; the device must identify it correctly so it does not look like money being sent to a stranger. Because of an optional field in the PSBT data format, a valid change output could be mistaken for a plain pay-to-script-hash output and treated as an external spend. The fix lets the parser consider these outputs as change candidates and then verifies ownership by rebuilding the expected script from the seed's own key, rather than trusting the PSBT's missing or misleading redeem script. The commit also adds tests showing that malicious PSBTs that claim ownership but pay someone else are rejected.
Renaming _policy_shape_matches to _is_change_candidate dropped the reason the candidacy test compares shape alone. Without it, adding the cosigners to the comparison reads as a harmless tightening.
The old wording named a misannotated fingerprint as what breaks an output's cosigner resolution. Since #1032, _get_cosigners matches each key to a global xpub by derivation path alone and never reads the fingerprint, so the restored note names a misannotated derivation path instead.
98/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
seed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Low 35/100
This commit only adds explanatory comments to a function that decides whether a Bitcoin transaction output should be treated as 'change' (money going back to the user's own wallet). The code itself is not changed. The new comments warn that comparing cosigner details at this early stage could let a malicious or malformed PSBT (transaction file) hide an output from normal change verification, because one bad derivation path could prevent cosigners from matching. The commit restores documentation that was accidentally lost during an earlier rename, so future developers do not mistakenly 'tighten' this check by adding cosigners here.
Security candidatestyle: restore the blank lines between the psbt parser testsby okaybro · fdcf21bb · Sep 29, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · okaybro
style: restore the blank lines between the psbt parser tests
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing boundarysigning or wallet pathparser or protocol path
AI analysis · Informational 15/100
This commit only adds two blank lines between test functions in a test file. It is a pure code-style change with no effect on the actual SeedSigner software or its security.
Security candidateNarrow bare p2sh candidacy to what the rebuild cannot decideby kdmukai · f04675e4 · Sep 29, 2026 · 2 filesMessage 83 · StrongModerate 59Details
Commit message · kdmukai
Narrow bare p2sh candidacy to what the rebuild cannot decide
The nested single sig outlier in change candidacy also required the output's one derivation path entry to claim this seed's fingerprint. That kept an output paying our key under another seed's key and fingerprint out of the rebuild, so it was shown as a spend to the user's own address, while the same output with its redeem script present is refused as a contradiction. The rebuild derives our key at the entry's path whatever fingerprint it lists, so the outlier drops the condition and _is_change_candidate drops the verified derivation paths it read for it.
The outlier also required exactly one derivation path entry. It only kept out bare p2sh outputs annotated with several keys while omitting their scripts, which no surveyed coordinator emits, and the single sig surplus check now refuses those.
The m-of-n exclusion becomes a check that the output omits its redeem script. For an output parsed as plain p2sh the two admit the same outputs, since a supplied multisig redeem script is the only source of an m-of-n there, and the new check states what the outlier is for.
New tests refuse an output that pays this seed but lists another key, and pin each of the three remaining conditions: a payment to another wallet of this seed, annotated with our key, stays a spend.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
access controlseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 59/100
This commit fixes a logic flaw in how SeedSigner decides whether a Bitcoin transaction output is 'change' going back to the user's own wallet, versus a payment to someone else. Previously, a specially crafted PSBT could make an output that actually pays to the user's own key appear as a spend to an external address, or could make a contradictory ownership claim slip through. The patch narrows the special-case rule and adds tests to catch these scenarios.
Merge pull request #1044 from kdmukai/psbt_multisig_output_claims
[security] Store multiple verified derivation path entries per input/output; reject all decoy keys
78/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol pathmerge-commit duplicate discount
AI analysis · High 78/100
This update fixes a security gap in how SeedSigner checks who owns each part of a Bitcoin transaction. A malicious transaction file (PSBT) could previously include an extra, real-but-irrelevant key belonging to your seed as a 'decoy' in a multisig change output. The old code only kept the first matching key it found, so it might miss the decoy and wrongly approve the output as your change, potentially letting funds slip to an attacker. The new code records every matching key claim, verifies each one against the actual output script, and rejects the transaction if any claim doesn't line up or if there are too many claims.
Security candidateAdmit bare p2sh outputs as nested single sig changeby kdmukai · cf18a0b9 · Sep 24, 2026 · 2 filesMessage 85 · StrongModerate 68Details
Commit message · kdmukai
Admit bare p2sh outputs as nested single sig change
A p2sh-p2wpkh output's scriptPubKey is a bare p2sh hash. BIP-174 leaves the redeem script optional on an output, and without it _get_policy types the output as plain p2sh, which does not match a p2sh-p2wpkh wallet policy. The output then never reaches the ownership check at all. Two things follow. The user's own change is displayed as a payment out to a stranger. And an output that keeps a genuine claim on this seed while repointing its scriptPubKey escapes the ownership-contradiction refusal by dropping one optional field.
Nested single sig is the only script type whose identity depends on an optional field its proof does not read: the rebuild is p2sh(p2wpkh(K)) from our own seed at the claimed path and the inputs' policy, so the missing field is a discriminator rather than evidence. For p2sh-p2wsh the discriminator and the proof material are the same field, so its absence is genuine silence and correctly out of reach.
_policy_shape_matches becomes _is_change_candidate, an instance method, since it now reads the inputs' policy and the output's verified derivation paths. Beside the unchanged shape comparison it admits a bare p2sh output under a p2sh-p2wpkh wallet that carries no m-of-n, supplies exactly one derivation path entry, and holds one verified claim on this seed. Everything below is unchanged: the rebuild decides, honest change is counted as change, and a repointed output raises PSBTOutputOwnershipContradictionError.
The single-entry conditions are what keep that refusal safe. A genuine multisig output carries one derivation path entry per cosigner, so it never reaches the contradiction check by this route. The shape that would is a bare p2sh output withholding both scripts while annotating a single key of a multisig, and no surveyed coordinator emits one. Every coordinator but Bitcoin Core annotates only its own change output. Core annotates an output because a descriptor solved its script, so it holds all n key origins and writes them.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing boundaryseed or entropy pathsigning or wallet pathparser or protocol path
AI analysis · Moderate 68/100
This commit fixes a bug in SeedSigner's PSBT transaction parser. When a user spent from a 'nested single-signature SegWit' wallet (p2sh-p2wpkh), a change output could omit an optional redeem script. The parser then misread the output as a plain, unrelated p2sh payment, so it showed the user's own change as money going to a stranger. Worse, an attacker could craft a PSBT that still claimed the change belonged to the user's seed while actually paying a different address, and the old code would not detect the contradiction. The patch lets these bare p2sh outputs through to the full ownership check, which rebuilds the expected address from the seed and catches any mismatch.