Skip to content

Implement peer wallet factory methods#35

Draft
leonardostsouza wants to merge 71 commits intotrac-wallet-r2from
implement-peer-wallet-factory-methods
Draft

Implement peer wallet factory methods#35
leonardostsouza wants to merge 71 commits intotrac-wallet-r2from
implement-peer-wallet-factory-methods

Conversation

@leonardostsouza
Copy link
Contributor

@leonardostsouza leonardostsouza commented Dec 16, 2025

This PR aims to refactor the whole trac-wallet code to make it cleaner and more maintainable. Also, we should export factory methods for the wallet, in order to make the developer interface more intuitive

  1. Refactor interactive mode
  2. Implement missing features from interactive mode (password input, custom derivation paths, etc)
  3. Implement factory methods for Wallet class

Benny and others added 30 commits March 21, 2025 18:13
replaced Buffer with b4a
added createHash method that utilizes sodium for sha256 and a custom generator if Pear is used for other types.
…e. this happened because there were 2 readline instances fighting over "dominance" if called from another app. initKeyPair now accepts an optional readline_instance argument where an existing instance can be passed and used instead.
…e. this happened because there were 2 readline instances fighting over "dominance" if called from another app. initKeyPair now accepts an optional readline_instance argument where an existing instance can be passed and used instead.
b-garbacz and others added 26 commits August 6, 2025 13:18
* Add blake3 package

* Add hash module

* Fix broken module dynamics
* Refactor Wallet class to use trac-crypto-api

* Implement brittle unit tests for address

* Remove direct calls to sodium lib

* Implement sign/verify tests

* Implement tests for import/export keystore

* Implement tests for hd wallet compatibility

* Fix sign and verify static methods

* Cleanup unused constants and dependencies

* Fix type conversion on keypair sanitization
* Implement key derivation support

* Update wallet tests

* Expose useful Trac Crypto Api functions

* Remove unnecessary debug messages

* Implement basic derivation path sanitization
Improved interaction for 12-24 word recovery
@leonardostsouza leonardostsouza marked this pull request as draft December 16, 2025 15:33
@leonardostsouza leonardostsouza linked an issue Dec 16, 2025 that may be closed by this pull request
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.

Refactor PeerWallet interface

4 participants