-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Trezor Wallet connection #11
Comments
@earrietadev can I be assigned this task |
Hey @earrietadev ! I'm Lau Chaves, I would like to contribute on this one! here's my onlydust profile https://app.onlydust.com/u/lauchaves not so much there since I'm starting in this world but here's my git as well https://github.com/lauchaves |
Hey! @earrietadev, I'll give you a heads-up if I come across any issues. Thanks! |
Hi @earrietadev i want to work on this issue |
@earrietadev hey 👋 ! I have a couple of questions... Regarding the signTx method, I noticed that the Trezor wallet's signTransaction method requires specifying a coin. Do we need to specify one? In my review of other wallet integrations, they do not require specifying a coin, and also that method doesn’t have a transaction parameter for the transaction: params.xdr like the other wallets. Additionally, I found another Trezor method called stellarSignTransaction, which accepts a transaction directly instead of an XDR string, the transaction for stellar approach should be something like this: Given this, do we need to refactor our approach to match any of those methods? Lastly, I tried to run the Stellar Wallet Kits on a simple project but had no luck. Is there a specific Node.js or TypeScript version required? I encountered errors related to TypeScript and ESM. Even after installing the necessary packages, it still didn't work. Is there another workaround to get it running, or might I be missing something? I followed the steps in the README. btw is there a Discord or Telegram group chat for support, or is it okay to ask questions here on GitHub? 😄 |
Hi @lauchaves it's ok to ask questions here,
You can try with the latest version, the kit is intended to be used in ES Module environment but I've seen some users asking for it to work on CommonJS workspaces too so I added the support for that.
Most likely this will be the approach, and yeah Trezor requires the XDR to be parsed in their own way. You will need to include the Stellar SDK library into the kit and decode the XDR into a Stellar Transaction so you can then parse it in the way Trezor requires it. Also, make sure to use the |
Hey 👋 @earrietadev Im still having issues testing it, I got the Trezor integration ready to test it... (I can open the PR in the meantime If you would like to go ahead and do some code review) I tried with I tried installing esm package as well didn't work either |
@lauchaves make sure your bundle is importing all the dependencies correctly. The kit works with Angular, React, Vue, Svelte and others. If you're not sure if your bundle is correctly importing everything, you can create a blank React project with |
@earrietadev got it 🚀 thanks! will test it now! |
Hey @earrietadev, I just open a PR for this! |
Can I take this issue? |
Here is a sample implementation ive been working on to implement trezor on a extension, maybe u could take ideas from here, there is also the stellar Account viewer that has an implementation for trezor |
Hi @joaquinsoza thanks for sharing it, I will be looking at it later. I've already implemented Trezor in extensions and websites (xBull Wallet has been supporting Trezor for a couple of years already). Currently the issue with hardware wallets libraries are the dependencies instead of the integration itself, I'm trying to keep the kit as dependency clean as possible while for example the Ledger USB transport library tries to use NodeJS specific features like the Native Buffer module. |
Mind if I take this issue? |
Is it okay if I take this? |
No description provided.
The text was updated successfully, but these errors were encountered: