-
Notifications
You must be signed in to change notification settings - Fork 57
Add ignore_missing_asset_packets field to SubmitTx #942
Copy link
Copy link
Open
Description
Description
Add an ignore_missing_asset_packets field to SubmitTx (either in the proto message or the PSBT) as an alternative solution to the asset weight attack vector discussed in #938.
Motivation
An attacker can craft a VTXO with a large number of assets to inflate transaction weight. The current approach caps len(assets) per output. An alternative (or complementary) mitigation is to let the caller signal that missing asset packets should be silently ignored rather than treated as an error — removing the incentive to bloat asset lists in the first place.
Design
Add an optional field to SubmitTx:
// In SubmitOffchainTxRequest or as a PSBT field
bool ignore_missing_asset_packets = X;When set, any asset referenced in a VTXO that has no corresponding packet is silently skipped rather than causing a validation failure.
Tasks
- Add
ignore_missing_asset_packetsto proto or PSBT - Wire up validation logic in
SubmitTxto respect the flag - Tests
- Docs
Related
- Limit the number of vtxo.assets #938 (max assets per VTXO cap)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels