Skip to content

feat: add TRON and TON chain support - #21

Closed
BitHighlander wants to merge 6 commits into
developfrom
feature-tron-ton
Closed

feat: add TRON and TON chain support#21
BitHighlander wants to merge 6 commits into
developfrom
feature-tron-ton

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Summary

  • TRON (TRX): secp256k1 address derivation and transaction signing (SLIP-44 195, msg IDs 1400-1403)
  • TON (The Open Network): Ed25519 address derivation and transaction signing (SLIP-44 607, msg IDs 1500-1503)
  • FSM handlers, messagemap entries, nanopb transport definitions
  • device-protocol submodule → fork/develop (all v7.14.0 protos)

Dependencies

Test plan

  • Build firmware with TRON+TON enabled
  • Test TronGetAddress derivation path m/44'/195'/0'/0/0
  • Test TonGetAddress derivation path m/44'/607'/0'
  • Test TronSignTx with pre-serialized raw_data
  • Test TonSignTx with Ed25519 signing

BitHighlander and others added 6 commits March 6, 2026 17:46
Remove QTUM, BNB, ZIL, GTO, IOST, CMT, MCO, and ODEM from tokens.def.

These tokens were listed as ERC-20 entries in the legacy coin table but
their contract addresses no longer exist in the generated uniswap_tokens
table (they migrated to their own L1 chains or were delisted). This
causes Coins.TableSanity unit test to fail because tokenByTicker()
finds them in coins[] but tokenByChainAddress() cannot locate them in
tokens[], returning UnknownToken.

The native chain entries for QTUM, BNB, etc. in coins.def are unaffected
(they have has_contract_address=false).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4-stage fail-fast pipeline: gate (lint, secrets, submodules) → build
(emulator + ARM cross-compile) → test (unit + Python integration) →
publish (manual DockerHub push). Downloadable firmware artifacts with
version-tagged naming. CircleCI config removed.
Remove unused variant builds (salt, fox, kaspersky, blockpit, dash) that
compiled on every build but are no longer shipped. Add KK_BITCOIN_ONLY
cmake option to produce a BTC-only firmware with altcoin sources and
crypto excluded. Add parallel CI job for BTC-only ARM cross-compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove dead white-label variants, add BTC-only build
Add address derivation and transaction signing for TRON (TRX) and
TON (The Open Network) to KeepKey firmware.

- TRON: secp256k1 signing, Base58Check addresses (SLIP-44 195, msg IDs 1400-1403)
- TON: Ed25519 signing, bounceable/non-bounceable addresses (SLIP-44 607, msg IDs 1500-1503)
- FSM handlers, messagemap entries, transport protobuf definitions
- device-protocol submodule updated to fork/develop with all v7.14.0 protos
@BitHighlander
BitHighlander deleted the feature-tron-ton branch March 12, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant