Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
53e3b12
feat(core): add support for `Portuguese (Brazil)`
somebodyLi Oct 21, 2024
153c6e6
fix(core): add risk warning for eip712 message signing
somebodyLi Oct 21, 2024
69c6d9f
fix(core): fix cardano sign message issue
somebodyLi Oct 21, 2024
f4b8bef
fix(core): fix the ble pair code display issue
somebodyLi Oct 21, 2024
fe84c66
fix(core): update ethereum chains data and add erc-20 token `POL` sup…
somebodyLi Sep 6, 2024
9ec5a12
fix(core/bootloader): optimize the device info entry in the bootloade…
somebodyLi Oct 25, 2024
b01f72b
feat(core): add bip322_simple message sign for btc
somebodyLi Jan 14, 2025
a2765e0
fix(core): optimize message decoding logic
somebodyLi Jan 14, 2025
6f5fba8
feat(core): add psbt sign support
somebodyLi Jan 14, 2025
78f1e3c
feat(core): add sol ledger live derivation path support
somebodyLi Jan 15, 2025
d290036
feat(core): add sol offchain message sign
somebodyLi Jan 16, 2025
5828c46
feat(core): prevent all chains, with the exception of EVM - based cha…
somebodyLi Jan 17, 2025
22b0115
feat(core): add EVM - based chains such as sonic, hsk, dtc, along wit…
somebodyLi Jan 17, 2025
00c09ab
feat(core/sol): add support for solana unsafe message signing
somebodyLi Feb 28, 2025
60cdff5
fix(core): track the update of cardano
somebodyLi Feb 7, 2025
9939d36
feat(core): auto lock screen adjust
somebodyLi Mar 3, 2025
40c1975
fix(core): fix cardano and polkadot get-address issue
somebodyLi Mar 3, 2025
f87950e
chore(core): bump version to 4.10.0
somebodyLi Jan 17, 2025
7afd459
fix(trezorlib): fix ton issue
somebodyLi Mar 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/defs/ethereum/chains
Submodule chains updated 2478 files
51 changes: 51 additions & 0 deletions common/defs/evm_tokens/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,32 @@
"__v": 0,
"marketCap": "6126893790.915463"
},
{
"_id": "62e8a3d28edb7c3c91a5586b",
"name": "Polygon",
"symbol": "POL",
"address": "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6",
"decimals": 18,
"logoURI": "https://common.onekey-asset.com/token/evm-1/0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0.jpg",
"impl": "evm",
"status": "LISTED",
"verified": true,
"security": false,
"addToIndex": false,
"chainId": "1",
"source": [
"sushi",
"Uniswap Labs Default",
"Coingecko"
],
"checked": true,
"coingeckoId": "matic-network",
"swftId": "MATIC",
"createdAt": "2022-08-02T04:10:58.228Z",
"updatedAt": "2022-11-16T13:02:51.357Z",
"__v": 0,
"marketCap": "6126893790.915463"
},
{
"_id": "62e8a3d28edb7c3c91a5585f",
"name": "Wrapped BTC",
Expand Down Expand Up @@ -1263,6 +1289,31 @@
"updatedAt": "2022-09-16T16:46:49.461Z",
"__v": 0,
"marketCap": "192347985.13471806"
},
{
"_id": "",
"name": "HashKey Platform Token",
"symbol": "HSK",
"address": "0xe7c6bf469e97eeb0bfb74c8dbff5bd47d4c1c98a",
"decimals": 18,
"logoURI": "",
"impl": "evm",
"status": "LISTED",
"verified": true,
"security": false,
"addToIndex": false,
"chainId": "1",
"source": [
"sushi",
"Coingecko"
],
"checked": true,
"coingeckoId": "",
"swftId": "",
"createdAt": "",
"updatedAt": "",
"__v": 0,
"marketCap": ""
}
]
}
Expand Down
30 changes: 30 additions & 0 deletions common/defs/evm_tokens/177.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "HashKey Chain",
"chain": "HashKey Chain",
"tokens": [
{
"name": "Wrapped HSK",
"symbol": "WHSK",
"address": "0xB210D2120d57b758EE163cFfb43e73728c471Cf1",
"decimals": 18
},
{
"name": "Wrapped Ether",
"symbol": "WETH",
"address": "0xefd4bC9afD210517803f293ABABd701CaeeCdfd0",
"decimals": 18
},
{
"name": "Tether USD",
"symbol": "USDT",
"address": "0xF1B50eD67A9e2CC94Ad3c477779E2d4cBfFf9029",
"decimals": 6
},
{
"name": "Wrapped BTC",
"symbol": "WBTC",
"address": "0x6119CA49a79f5825C8B345F8d7aC36B272565b14",
"decimals": 8
}
]
}
69 changes: 69 additions & 0 deletions common/defs/evm_tokens/9798.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "Data Trade Chain",
"chain": "Data Trade Chain",
"tokens": [
{
"id": "837d169e-6f33-535a-988c-8b2eb31dd0bd",
"name": "HLT",
"symbol": "HLT",
"address": "0xE52a736828c782C2a4A345bBE8052aed010fc82D",
"decimals": 2
},
{
"id": "e2c7ceec-289d-5508-8c3d-ab33d36d6ecd",
"name": "BV",
"symbol": "BV",
"address": "0x8E79850C50E525eB6Ba63e601E7b41888A1c9102",
"decimals": 2
},
{
"id": "ce5883e4-213b-55cb-b49c-2df48e5dea8e",
"name": "dUSDT",
"symbol": "dUSDT",
"address": "0x36E6504c968f5C2A310B6AF7B97BC22cdd3402cc",
"decimals": 6
},
{
"id": "79cab3e2-b87b-53a3-9b5b-c120b9287749",
"name": "dBTC",
"symbol": "dBTC",
"address": "0xE895c577D747bB5dbBc1F06cb44d6067680bE4be",
"decimals": 8
},
{
"id": "3f348ef3-1ced-5c1f-b25b-dbde27a12ab1",
"name": "dETH",
"symbol": "dETH",
"address": "0x8B7160C1E9fDb689A060Ff0919E84915B0dFa04a",
"decimals": 18
},
{
"id": "ad4ea990-8cfe-5372-8102-a9aa7574a65c",
"name": "DOS",
"symbol": "DOS",
"address": "0x745C11Fb4783Bd00A88a0B99420262f409FA8Bb8",
"decimals": 2
},
{
"id": "0128716b-1bc9-542b-a322-51d4e3be9270",
"name": "CNV",
"symbol": "CNV",
"address": "0x899f0B9d67DD1B833fdaa90c8b09ea616d0e9E98",
"decimals": 2
},
{
"id": "7f37f71c-aee4-5876-9781-61eb5ede3e61",
"name": "FEC",
"symbol": "FEC",
"address": "0xb88ad767B416197e62939dEc207431b561A9383B",
"decimals": 4
},
{
"id": "1e46303c-dcc6-5899-8b44-84dd2f348644",
"name": "STC08375",
"symbol": "STC08375",
"address": "0x6d885b0B37C62Be0c72Ecd6a61Af2bfFf681419e",
"decimals": 0
}
]
}
36 changes: 20 additions & 16 deletions common/defs/support.json
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@
"eth:JOYS": "1.9.5",
"eth:KAR": "1.9.5",
"eth:KCS": "1.10.3",
"eth:KLAY": "1.9.5",
"eth:KAIA": "1.9.5",
"eth:KTO:2559": "1.10.3",
"eth:L1": "1.10.5",
"eth:L99": "1.10.4",
Expand Down Expand Up @@ -2252,7 +2252,7 @@
"eth:tGOR:420": "1.9.5",
"eth:tGOR:5": "1.9.5",
"eth:tKAL": "1.9.4",
"eth:tKLAY": "1.9.5",
"eth:tKAIA": "1.9.5",
"eth:tKOR": "1.9.5",
"eth:tKOT": "1.9.4",
"eth:tKOV": "1.6.2",
Expand Down Expand Up @@ -4286,6 +4286,7 @@
"erc20:eth:eUSD": "2.0.7",
"erc20:eth:eosDAC": "2.0.7",
"erc20:eth:fstETHDAI": "2.3.1",
"erc20:eth:HSK": "4.10.0",
"erc20:eth:iBAT": "2.3.0",
"erc20:eth:iBNB": "2.3.0",
"erc20:eth:iBTC": "2.3.0",
Expand Down Expand Up @@ -4697,7 +4698,7 @@
"eth:BTA": "2.4.3",
"eth:BTCIX": "2.4.4",
"eth:BTM": "2.4.4",
"eth:BTT": "2.4.3",
"eth:BTT:199": "2.4.3",
"eth:CATE": "2.4.2",
"eth:CCP": "2.4.4",
"eth:CELO": "2.3.7",
Expand All @@ -4710,6 +4711,7 @@
"eth:DAX": "2.4.2",
"eth:DEV": "2.4.3",
"eth:DIODE": "2.3.7",
"eth:DTT": "4.10.0",
"eth:DTH": "2.4.4",
"eth:DWU": "2.4.2",
"eth:DYNO": "2.4.4",
Expand Down Expand Up @@ -4744,7 +4746,7 @@
"eth:EWT": "2.3.5",
"eth:EXP": "2.0.7",
"eth:FETH": "2.4.2",
"eth:FIL": "4.3.0",
"eth:FIL:314": "4.3.0",
"eth:FIN": "2.3.5",
"eth:FLR": "2.3.7",
"eth:FSN": "2.4.2",
Expand All @@ -4758,9 +4760,10 @@
"eth:GT": "2.4.2",
"eth:GooD": "2.4.2",
"eth:HAIC": "2.4.2",
"eth:HO": "2.4.4",
"eth:HO:1280": "2.4.4",
"eth:HOP": "2.4.4",
"eth:HPB": "2.1.1",
"eth:HSK": "4.10.0",
"eth:HT": "2.3.7",
"eth:ILT": "2.3.5",
"eth:IORA": "2.4.4",
Expand All @@ -4770,14 +4773,14 @@
"eth:JOYS": "2.3.7",
"eth:KAR": "2.3.7",
"eth:KCS": "2.4.2",
"eth:KLAY": "2.3.7",
"eth:KAIA": "2.3.7",
"eth:KTO:2559": "2.4.2",
"eth:L1": "2.4.4",
"eth:L1:29": "2.4.4",
"eth:L99": "2.4.3",
"eth:LA": "2.4.4",
"eth:LISINSKI": "2.3.5",
"eth:MATH": "2.3.7",
"eth:MATIC": "2.3.5",
"eth:POL": "2.3.5",
"eth:META": "2.1.1",
"eth:METIS": "2.4.4",
"eth:MINTME": "2.4.2",
Expand All @@ -4786,7 +4789,7 @@
"eth:MOLE": "2.4.4",
"eth:MOVR": "2.4.2",
"eth:MTR": "2.3.7",
"eth:MTT": "2.4.2",
"eth:MTT:16000": "2.4.2",
"eth:MUSIC": "2.0.8",
"eth:NEON:245022934": "2.4.3",
"eth:NEW": "2.3.7",
Expand All @@ -4803,7 +4806,7 @@
"eth:ONE:1666600003": "2.3.7",
"eth:ONG": "2.4.2",
"eth:OY": "2.4.4",
"eth:PALM": "2.4.3",
"eth:PALM:11297108109": "2.4.3",
"eth:PETH": "2.4.2",
"eth:PHT": "2.3.5",
"eth:PHX": "2.4.4",
Expand All @@ -4812,7 +4815,7 @@
"eth:PLS": "2.4.3",
"eth:POA": "2.3.5",
"eth:POLIS": "2.4.4",
"eth:POP": "2.4.3",
"eth:POP:1213": "2.4.3",
"eth:PRB": "2.4.4",
"eth:QKC:100000": "2.4.2",
"eth:QKC:100001": "2.4.2",
Expand All @@ -4832,6 +4835,7 @@
"eth:ROSE": "2.4.4",
"eth:RPG": "2.4.4",
"eth:RUPX": "2.3.7",
"eth:S": "4.10.0",
"eth:SDN": "2.4.3",
"eth:SETM": "2.4.4",
"eth:SGB": "2.4.2",
Expand All @@ -4843,15 +4847,15 @@
"eth:SPOA": "2.4.4",
"eth:SRN": "2.4.3",
"eth:Seele": "2.4.4",
"eth:TAO": "2.3.5",
"eth:TAO:558": "2.3.5",
"eth:TBG": "2.3.7",
"eth:TCH": "2.3.5",
"eth:TCLO": "2.3.5",
"eth:TELE:8000": "2.4.4",
"eth:TETC": "2.3.5",
"eth:TFI": "2.3.7",
"eth:TLOS:40": "2.4.2",
"eth:TOMO:88": "2.4.4",
"eth:VIC": "2.4.4",
"eth:TOYS": "2.3.7",
"eth:TPEP": "2.3.5",
"eth:TSF": "2.3.5",
Expand Down Expand Up @@ -4896,14 +4900,14 @@
"eth:tETH:5": "4.3.0",
"eth:tETH:11155111": "4.9.1",
"eth:tKAL": "2.3.5",
"eth:tKLAY": "2.3.7",
"eth:tKAIA": "2.3.7",
"eth:tKOR": "2.3.7",
"eth:tKOT": "2.3.5",
"eth:tKOV": "2.0.7",
"eth:tMATH": "2.3.7",
"eth:tMATIC": "2.3.5",
"eth:tMATIC:80001": "2.3.5",
"eth:tMETC": "2.3.5",
"eth:tNEW": "2.3.7",
"eth:tNEW:1007": "2.3.7",
"eth:tNRG": "2.3.5",
"eth:tPHT": "2.3.5",
"eth:tRBTC": "2.0.7",
Expand Down
19 changes: 19 additions & 0 deletions common/protob/messages-bitcoin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ message SignMessage {
optional string coin_name = 3 [default='Bitcoin']; // coin to use for signing
optional InputScriptType script_type = 4 [default=SPENDADDRESS]; // used to distinguish between various address formats (non-segwit, segwit, etc.)
optional bool no_script_type = 5; // don't include script type information in the recovery byte of the signature, same as in Bitcoin Core
optional bool is_bip322_simple = 10[default=false]; // use BIP-322 simple format for signing
}

/**
Expand Down Expand Up @@ -621,3 +622,21 @@ message AuthorizeCoinJoin {
optional AmountUnit amount_unit = 8 [default=BITCOIN]; // show amounts in
}

/**
* Request: Ask device to sign a taproot transaction
* @start
* @next SignedPsbt
* @next Failure
*/
message SignPsbt {
required bytes psbt = 1; // PSBT to be signed
optional string coin_name = 2[default='Bitcoin'];
}

/**
* Response: Contains the signed PSBT
* @end
*/
message SignedPsbt {
required bytes psbt = 1; // PSBT to be finalized
}
Loading
Loading