Skip to content

Implement Seed Tron signer#29

Open
Kolezhniuk wants to merge 20 commits intotetherto:developfrom
idyllicvision:develop
Open

Implement Seed Tron signer#29
Kolezhniuk wants to merge 20 commits intotetherto:developfrom
idyllicvision:develop

Conversation

@Kolezhniuk
Copy link
Copy Markdown

This pull request introduces a new Tron signer architecture, updates dependencies, and refactors the Tron wallet account implementation to improve modularity and maintainability. The main changes include the addition of a dedicated signers module, refactoring account creation to use signers, and updating package exports and dependencies.

Signer Architecture and Wallet Refactor

Signers module introduction:

  • Added a new src/signers module with a Tron-specific signer interface (ISignerTron) and a BIP-39 seed-based signer implementation (SeedSignerTron). This modularizes key management and signing logic for Tron accounts. [1] [2] [3]

Wallet account refactor:

  • Refactored WalletAccountTron to use a child signer instance for account creation and signing, replacing the previous direct HDKey and key derivation logic. A legacy fromSeed factory method is provided for backward compatibility. [1] [2]

Dependency and Package Updates

Dependency upgrades:

  • Updated several dependencies to their latest versions, including tronweb, @noble/curves, @noble/hashes, @scure/bip32, and @tetherto/wdk-wallet (now referencing a GitHub branch). Also updated dev dependencies and the axios override.

Exports and testing configuration:

  • Updated package.json to export the new signers module and improved Jest configuration for integration tests.

TronWeb Usage and Typing

TronWeb import and typing improvements:

  • Updated imports in wallet-account-read-only-tron.js to use named imports and more precise type annotations for TronWeb and Trx, ensuring compatibility with newer TronWeb versions. [1] [2] [3] [4]

Signers module introduction and interface design [1] [2] [3]
Wallet account refactor to use signers [1] [2]
Dependency upgrades for security and compatibility
Exports and Jest test configuration improvements
TronWeb import and type annotation updates [1] [2] [3] [4]# Description

@Kolezhniuk Kolezhniuk changed the title Implement and test Tron wallet features with Jest configuration Implement Seed Tron signer Mar 2, 2026
@Kolezhniuk Kolezhniuk marked this pull request as ready for review March 11, 2026 11:26
@jonathunne jonathunne self-requested a review March 27, 2026 09:07
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