Skip to content

Commit f6326cf

Browse files
author
ZhenQian
committed
feat: add keystone nexus
1 parent 356328f commit f6326cf

File tree

8 files changed

+177
-210
lines changed

8 files changed

+177
-210
lines changed
-2.78 KB
Loading

src/ui/gui_assets/images_hash.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2704e955edd599bb96594a78763d6a42
1+
2d0b63d974652e3681292274a77162db

src/ui/gui_assets/walletList/walletListKeystone.c

+48-48
Large diffs are not rendered by default.

src/ui/gui_components/gui_status_bar.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const static CoinWalletInfo_t g_coinWalletBtn[] = {
105105

106106
const static WalletInfo_t g_walletBtn[] = {
107107
#ifndef BTC_ONLY
108-
{WALLET_LIST_KEYSTONE, "Keystone", &walletKeystone},
108+
{WALLET_LIST_KEYSTONE, "Keystone Nexus", &walletKeystone},
109109
{WALLET_LIST_METAMASK, "MetaMask", &walletMetamask},
110110
{WALLET_LIST_OKX, "OKX Wallet", &walletOkx},
111111
{WALLET_LIST_ETERNL, "Eternl Wallet", &walletEternl},

src/ui/gui_wallet/multi/web3/gui_wallet.c

+18-18
Original file line numberDiff line numberDiff line change
@@ -451,31 +451,31 @@ UREncodeResult *GuiGetKeystoneConnectWalletData(void)
451451
GetMasterFingerPrint(mfp);
452452
PtrT_CSliceFFI_ExtendedPublicKey public_keys = SRAM_MALLOC(sizeof(CSliceFFI_ExtendedPublicKey));
453453
// btc 4
454-
// + eth 10
454+
// + eth 1
455455
// + trx 1
456-
ExtendedPublicKey keys[15];
456+
ExtendedPublicKey keys[6];
457457
public_keys->data = keys;
458-
public_keys->size = 15;
459-
for (int i = XPUB_TYPE_ETH_LEDGER_LIVE_0; i <= XPUB_TYPE_ETH_LEDGER_LIVE_9; i++) {
460-
keys[i - XPUB_TYPE_ETH_LEDGER_LIVE_0].path = SRAM_MALLOC(BUFFER_SIZE_64);
461-
snprintf_s(keys[i - XPUB_TYPE_ETH_LEDGER_LIVE_0].path, BUFFER_SIZE_64, "m/44'/60'/%d'", i - XPUB_TYPE_ETH_LEDGER_LIVE_0);
462-
keys[i - XPUB_TYPE_ETH_LEDGER_LIVE_0].xpub = GetCurrentAccountPublicKey(i);
463-
}
458+
public_keys->size = 6;
464459

465-
keys[10].path = "m/44'/0'/0'";
466-
keys[10].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_LEGACY);
460+
// eth standard
461+
keys[0].path = "m/44'/60'/0'";
462+
keys[0].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_ETH_BIP44_STANDARD);
467463

468-
keys[11].path = "m/49'/0'/0'";
469-
keys[11].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC);
470464

471-
keys[12].path = "m/84'/0'/0'";
472-
keys[12].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_NATIVE_SEGWIT);
465+
keys[1].path = "m/44'/0'/0'";
466+
keys[1].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_LEGACY);
473467

474-
keys[13].path = "m/86'/0'/0'";
475-
keys[13].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_TAPROOT);
468+
keys[2].path = "m/49'/0'/0'";
469+
keys[2].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC);
470+
471+
keys[3].path = "m/84'/0'/0'";
472+
keys[3].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_NATIVE_SEGWIT);
473+
474+
keys[4].path = "m/86'/0'/0'";
475+
keys[4].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_BTC_TAPROOT);
476476

477-
keys[14].path = GetXPubPath(XPUB_TYPE_TRX);
478-
keys[14].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_TRX);
477+
keys[5].path = GetXPubPath(XPUB_TYPE_TRX);
478+
keys[5].xpub = GetCurrentAccountPublicKey(XPUB_TYPE_TRX);
479479

480480
char serialNumber[256];
481481
GetSerialNumber(serialNumber);

src/ui/gui_widgets/multi/web3/gui_connect_wallet_widgets.c

+6-7
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ static const lv_img_dsc_t *g_backpackWalletCoinArray[2] = {
132132
};
133133

134134
static const lv_img_dsc_t *g_keystoneWalletCoinArray[] = {
135-
&coinBtc, &coinEth, &coinBnb, &coinBch,
136-
&coinDash, &coinLtc, &coinTrx, &coinXrp,
135+
&coinBtc, &coinEth,&coinTrx
137136
};
138137

139138
static const lv_img_dsc_t *g_blueWalletCoinArray[4] = {
@@ -850,11 +849,11 @@ static void AddKeystoneWalletCoins(void)
850849
lv_img_set_pivot(img, 0, 0);
851850
lv_obj_align(img, LV_ALIGN_TOP_LEFT, 32 * i, 0);
852851
}
853-
lv_obj_t *img = GuiCreateImg(g_coinCont, &imgMore);
854-
lv_img_set_zoom(img, 150);
855-
lv_img_set_pivot(img, 0, 0);
856-
lv_obj_set_style_img_opa(img, LV_OPA_30, LV_PART_MAIN);
857-
lv_obj_align(img, LV_ALIGN_TOP_LEFT, 132, 2);
852+
// lv_obj_t *img = GuiCreateImg(g_coinCont, &imgMore);
853+
// lv_img_set_zoom(img, 150);
854+
// lv_img_set_pivot(img, 0, 0);
855+
// lv_obj_set_style_img_opa(img, LV_OPA_30, LV_PART_MAIN);
856+
// lv_obj_align(img, LV_ALIGN_TOP_LEFT, 132, 2);
858857
}
859858

860859
static void AddBlueWalletCoins(void)

src/ui/lv_i18n/data.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ Wallet Profile,24,wallet_profile_mid_btn,Wallet Profile,Профиль коше
905905
,20,ar_address_check_desc,"Different wallets may generate AR addresses differently, resulting in different addresses from the same phrase. This is normal. After connecting to the software wallet, please compare the address to ensure it matches the hardware wallet.","Разные кошельки могут генерировать AR-адреса по-разному, что приводит к различным адресам от одной и той же фразы. Это нормально. После подключения к программному кошельку, пожалуйста, сравните адрес, чтобы убедиться, что он совпадает с адресом аппаратного кошелька.","서로 다른 지갑은 AR 주소를 다르게 생성할 수 있으며, 결과적으로 동일한 구문에서도 다른 주소가 생성될 수 있습니다. 이는 정상적인 현상입니다. 소프트웨어 지갑에 연결한 후 주소가 하드웨어 지갑과 일치하는지 확인해주시기 바랍니다","不同的钱包可能以不同的方式生成AR地址, 从而导致相同的短语产生不同的地址。这是正常的。连接到软件钱包后, 请比较地址以确保与硬件钱包匹配。","Diferentes monederos pueden generar direcciones AR de manera diferente, resultando en direcciones diferentes a partir de la misma frase. Esto es normal. Después de conectarse al monedero de software, por favor compare la dirección para asegurarse de que coincide con el monedero de hardware.","Unterschiedliche Wallets können AR-Adressen unterschiedlich generieren, was zu unterschiedlichen Adressen aus demselben Satz führt. Dies ist normal. Nach dem Verbinden mit der Software-Wallet vergleichen Sie bitte die Adresse, um sicherzustellen, dass sie mit der Hardware Wallet übereinstimmt",異なるウォレットは、同じフレーズから異なるアドレスを生成する場合があります。これは正常な動作です。ソフトウェアウォレットに接続後、アドレスがハードウェアウォレットと一致するかどうか確認してください。
906906
,20,solana_parse_tx_notice,The accounts in Instructions will be affected by this transaction. Please review carefully.,"Счета, указанные в Инструкциях, будут затронуты этой операцией. Пожалуйста, внимательно проверьте.",지침서에 명시된 계좌들은 이 거래의 영향을 받게 됩니다. 주의 깊게 검토해 주시기 바랍니다.,说明中的账户将受到此交易的影响。请仔细检查。,"Las cuentas indicadas en las Instrucciones se verán afectadas por esta transacción. Por favor, revíselas detenidamente.",Laut Anweisung betroffene Konten werden von dieser Transaktion beeinflusst. Bitte sorgfältig prüfen.,指示書の口座がこの取引の影響を受けます。慎重に確認してください。
907907
,20,solana_alt_notice,The Address Lookup Table URL provides a reference to view detailed account information related to this transaction. Please note that the URL may expire or change over time,"Ссылка на таблицу адресов предоставляет информацию по счетам, связанным с этой операцией. Имейте в виду, что ссылка может измениться или устареть со временем.","주소록 테이블 URL은 이 거래와 관련된 계좌 정보를 제공합니다. 단, URL이 만료되거나 변경될 수 있음을 유의하시기 바랍니다.",地址查找表的网址提供了与此交易相关账户信息的参考。请注意该网址可能会过期。,La URL de la Tabla de Consulta de Direcciones proporciona una referencia para ver la información detallada de las cuentas relacionadas con esta transacción. Tenga en cuenta que la URL puede expirar o cambiar con el tiempo.,"Die URL der Adresstabelle bietet eine Referenz, um detaillierte Kontoinformationen zu dieser Transaktion einzusehen. Bitte beachten Sie, dass die URL ablaufen oder sich ändern kann.",アドレス参照表のURLでは、この取引に関連する詳細な口座情報を確認できます。URLは期限切れや変更の可能性があることにご留意ください。
908-
,20,connect_keystone_title,Keystone,Keystone,Keystone,Keystone,Keystone,Keystone,Keystone
908+
,20,connect_keystone_title,Keystone Nexus,Keystone Nexus,Keystone Nexus,Keystone Nexus,Keystone Nexus,Keystone Nexus,Keystone Nexus
909909
,20,connect_keystone_link,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone,https://keyst.one/t/3rd/keystone
910910
,20,hardware_call_approve_notice,"Please note, if the path not saved on the device will require a password to be recalculated.","Обратите внимание, что если путь не сохранен на устройстве, потребуется пересчитать пароль.",주의사항: 경로가 기기에 저장되어 있지 않으면 비밀번호를 다시 계산해야 합니다.,"请注意,如果路径未保存在设备上,将需要重新计算密码。","Tenga en cuenta que, si la ruta no se guarda en el dispositivo, se requerirá recalcular la contraseña.","Bitte beachten Sie, dass wenn der Pfad nicht auf dem Gerät gespeichert ist, ein Passwort neu berechnet werden muss.",注意事項: デバイスにパスが保存されていない場合、パスワードを再計算する必要があります。
911911
,20,invaild_account_path,Invalid Account Path,Недействительный путь учетной записи,잘못된 계정 경로,无效的账户路径,Ruta de cuenta no válida,Ungültiger Kontopfad,無効なアカウントパス

0 commit comments

Comments
 (0)