wallet2: verify v1 txid in get_tx_key and set_tx_key #11782
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.30) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 89 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.269
Real PR Conversation Timeline
1 comments
"Review active on #11782"
general
weight: 0.35
selsta
get_tx_keyandset_tx_keyfetch pruned transactions from/gettransactionsand parse them withget_pruned_tx. For v1 transactions,get_pruned_txtrusts the daemon's claimedentry.tx_hash, so comparingtx_hash != txiddoes not bind the returned transaction prefix ortx.extrato the requestedtxid. A daemon can return a different v1 prefix soset_tx_keyaccepts and caches a mismatched tx secret key fortxid, or feed an unverifiedtx_prefix_hashtodev_cold->get_tx_key.Reuse
get_tx_for_proofin both paths (following #11693 and #11696) so v1 transactions are refetched in full and hashed before trusting their prefix, while v2 transactions continue to use a single pruned request.