tests(clear_signing): 1inch ethunoswap unknown token as native
What changed, and why it matters
This commit only adds new test fixtures and a test case for the Trezor hardware wallet's Ethereum 'clear signing' feature. It tells the device how to display a specific 1inch swap function (ethUnoswap) on screen so users can verify what they are signing. There is no change to firmware code, no bug fix, and no security patch.
No security action required; review as normal test-data addition if validating clear-signing definitions.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds two Ethereum display-format definition JSON files for 1inch Network AggregationRouterV6 (function signature 0xa76dfc3b for ethUnoswap and a fallback 0x0000000000000000 entry), plus a corresponding test vector in sign_tx_external_definitions.json. These are test-only data fixtures used to validate clear-signing formatting for a swap where the received token is native currency (ETH). No runtime code is modified.
Changed components
common/tests/fixtures/ethereum/definitions/eth/chain-id/1/display-format/111111125421ca6dc452d289314280a0f8842a65-0000000000000000.jsoncommon/tests/fixtures/ethereum/definitions/eth/chain-id/1/display-format/111111125421ca6dc452d289314280a0f8842a65-a76dfc3b.jsoncommon/tests/fixtures/ethereum/sign_tx_external_definitions.jsonInspect captured patch +87 / −0
### common/tests/fixtures/ethereum/definitions/eth/chain-id/1/display-format/111111125421ca6dc452d289314280a0f8842a65-0000000000000000.json
@@ -0,0 +1,10 @@
+{
+ "data_type": "ETHEREUM_DISPLAY_FORMAT",
+ "message": {
+ "chain_id": 1,
+ "address": "111111125421ca6dc452d289314280a0f8842a65",
+ "func_sig": "0000000000000000",
+ "intent": "",
+ "provider_name": "1inch Network: AggregationRouterV6"
+ }
+}
### common/tests/fixtures/ethereum/definitions/eth/chain-id/1/display-format/111111125421ca6dc452d289314280a0f8842a65-a76dfc3b.json
@@ -0,0 +1,57 @@
+{
+ "data_type": "ETHEREUM_DISPLAY_FORMAT",
+ "message": {
+ "chain_id": 1,
+ "address": "111111125421ca6dc452d289314280a0f8842a65",
+ "func_sig": "a76dfc3b",
+ "intent": "Swap",
+ "parameter_definitions": [
+ {
+ "atomic": "ABI_UINT256"
+ },
+ {
+ "atomic": "ABI_UINT256"
+ }
+ ],
+ "field_definitions": [
+ {
+ "path": {
+ "container_path": "VALUE"
+ },
+ "label": "Amount to Send",
+ "formatter": "FORMATTER_AMOUNT"
+ },
+ {
+ "path": {
+ "path": [
+ 0
+ ]
+ },
+ "label": "Minimum to Receive",
+ "formatter": "FORMATTER_TOKEN_AMOUNT",
+ "native_currency_address": [
+ "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
+ "0000000000000000000000000000000000000000"
+ ]
+ },
+ {
+ "path": {
+ "container_path": "FROM"
+ },
+ "label": "Beneficiary",
+ "formatter": "FORMATTER_ADDRESS_NAME"
+ },
+ {
+ "path": {
+ "path": [
+ 1
+ ],
+ "slice_start": -20
+ },
+ "label": "Last pool",
+ "formatter": "FORMATTER_ADDRESS_NAME"
+ }
+ ],
+ "provider_name": "1inch Network: AggregationRouterV6"
+ }
+}
### common/tests/fixtures/ethereum/sign_tx_external_definitions.json
@@ -564,6 +564,26 @@
"sig_s": "4003351edf6663de8bac5b70cd00af0dbda96519fee8a251c683739a79875459"
}
},
+ {
+ "name": "1inch_AggregationRouterV6_ethUnoswap",
+ "parameters": {
+ "comment": "supported | https://etherscan.io/tx/0xd590d9d63c7750a5c88f11912ac3b47454760ff4131698ff71a5c82c974c64f7",
+ "data": "a76dfc3b000000000000000000000000000000000000000000000000000000000022eea700000000000000003b6d0340b4e16d0168e52d35cacd2c6185b44281ec28c9dce7f553244a82836d",
+ "path": "m/44'/60'/0'/0/0",
+ "to_address": "0x111111125421cA6dc452d289314280a0f8842A65",
+ "chain_id": 1,
+ "nonce": "0x0",
+ "gas_price": "0x28fa6dcc",
+ "gas_limit": "0x26639",
+ "tx_type": null,
+ "value": "0x38d7ea4c68000"
+ },
+ "result": {
+ "sig_v": 37,
+ "sig_r": "b429fa615dacc296a2466a97f9a627bce3a9cba3069e16647b5cb2d7d339036d",
+ "sig_s": "4a7f39a10ebc9c6ce59edabd10ab4e536af97d9caba21de0f6b1a52563fb1ebc"
+ }
+ },
{
"name": "kiln_Vault_USDC_Morpho_Gauntlet_Prime_deposit",
"parameters": {Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.