Bitcoin Forum
May 08, 2024, 05:43:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Access Trezor using C#  (Read 314 times)
OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
June 01, 2018, 03:35:01 PM
 #1

Unlike Ledger nano S, there is no .NET Library apparently. The main thing I would like to do is access the addresses and get their balances. Any suggestions on how to achieve that?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715146988
Hero Member
*
Offline Offline

Posts: 1715146988

View Profile Personal Message (Offline)

Ignore
1715146988
Reply with quote  #2

1715146988
Report to moderator
1715146988
Hero Member
*
Offline Offline

Posts: 1715146988

View Profile Personal Message (Offline)

Ignore
1715146988
Reply with quote  #2

1715146988
Report to moderator
1715146988
Hero Member
*
Offline Offline

Posts: 1715146988

View Profile Personal Message (Offline)

Ignore
1715146988
Reply with quote  #2

1715146988
Report to moderator
developer4z
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
June 01, 2018, 04:13:17 PM
 #2

Unlike Ledger nano S, there is no .NET Library apparently. The main thing I would like to do is access the addresses and get their balances. Any suggestions on how to achieve that?

Through their API. They do offer different apis and i think that should be sufficient.

doc.satoshilabs.com/trezor-tech/api.htm

I'd probably go with python an try to run python script through C# and process output.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 01, 2018, 06:30:31 PM
Merited by OmegaStarScream (2), Welsh (2), ABCbits (1)
 #3

You would have to use the low level API directly. The high level libraries abstract this away, but without the high level library, you have to use the low level API. Or you can write some translation interface between Python and C#.

tsknik
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
June 14, 2018, 02:00:13 PM
 #4

Maybe help this library: https://libraries.io/nuget/KeepKeySharp
OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
June 14, 2018, 05:02:39 PM
 #5


Definitely useful, I appreciate it.

I managed to get the application to detect the trezor but I'm stuck and unable to get features.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
hknknitin
Copper Member
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile WWW
July 15, 2018, 04:28:13 PM
 #6

Hello,

I have been working since last 2 months to communicate with Trezor for support to integrate their Ledger Nano with our web application but there has been response.

I have been working to find ways to do it and found the way to get address for below 3 more currencies -
Digibyte
Stratis
Pivx

All cryptocurrencies being associated with Bitcoin Wallet it is opening, I am yet looking to find a way to get for the below further currencies -

Ethereum
Ethereum Classic
Ripple
Neo
Ethereum Tokens

If anyone of you could help me how to do as soon as possible will be really good.

@developer4z your link does not work, if you share a working link will really good for me to complete the development.


Looking forward for best knowledge share from our senior developers and member on the form.
OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
July 15, 2018, 05:12:59 PM
 #7

It's the same link posted by achow101: https://doc.satoshilabs.com/trezor-tech/api.html

but I'm pretty sure you already came across it already because without it, you can't make much progress.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Domain_THEME
Member
**
Offline Offline

Activity: 504
Merit: 19


View Profile
July 18, 2018, 04:05:16 AM
 #8

 Why do not you address this issue to the developers themselves, they have a very responsive support. You can ask them to give an answer about the form in which the simplest technical implementation of this question is possible. https://trezor.io/troubleshooter/
OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
July 18, 2018, 10:21:10 AM
 #9

Why do not you address this issue to the developers themselves, they have a very responsive support. You can ask them to give an answer about the form in which the simplest technical implementation of this question is possible. https://trezor.io/troubleshooter/

I know, I'm never disappointed with Trezor's support but that's clearly not something they could help with. If they don't have a C# API, you can't force them to make one.


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 05, 2018, 05:40:42 AM
Merited by OmegaStarScream (5)
 #10

Hi. I built this Trezor C# library:

https://github.com/MelbourneDeveloper/Trezor.Net

It's fully open source (MIT License). It's being used in two production versions of the same app Hardfolio which is in the Google Play Store and the Windows 10 Store. I'm happy to support the library so if you have any issues, please log in them in the issues section on GitHub. There's currently only a sample for .NET Core, but I am using it's out in the wild on Android and UWP.

You can get it from NuGet. It's Trezor.Net

OmegaStarScream (OP)
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6125



View Profile
August 05, 2018, 05:43:46 AM
 #11

Hi. I built this Trezor C# library:

https://github.com/MelbourneDeveloper/Trezor.Net

It's fully open source (MIT License). It's being used in two production versions of the same app Hardfolio which is in the Google Play Store and the Windows 10 Store. I'm happy to support the library so if you have any issues, please log in them in the issues section on GitHub. There's currently only a sample for .NET Core, but I am using it's out in the wild on Android and UWP.

You can get it from NuGet. It's Trezor.Net

I found it a few days after my last post in this thread, didn't knew you're from the forums so thank you!

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 05, 2018, 06:00:11 AM
 #12

That's awesome! Glad to hear you came across it. You'll probably be interested in my app Hardfolio. It's based on Trezor.Net, and will soon support Ledger.
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 05, 2018, 06:07:22 AM
 #13

Oh. probably a good idea to grab version 1.2.1 because I've been fixing thread safety issues today.

Also, it would be a good idea to join this community:
https://gitter.im/trezor/community

Very helpful
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 05, 2018, 06:35:29 AM
 #14

Hello,

I have been working since last 2 months to communicate with Trezor for support to integrate their Ledger Nano with our web application but there has been response.

I have been working to find ways to do it and found the way to get address for below 3 more currencies -
Digibyte
Stratis
Pivx

All cryptocurrencies being associated with Bitcoin Wallet it is opening, I am yet looking to find a way to get for the below further currencies -

Ethereum
Ethereum Classic
Ripple
Neo
Ethereum Tokens

If anyone of you could help me how to do as soon as possible will be really good.

@developer4z your link does not work, if you share a working link will really good for me to complete the development.


Looking forward for best knowledge share from our senior developers and member on the form.

I can help with Ledger and Trezor integration. Are you looking for C# libraries? Please PM me if so.
BTC-TK
Member
**
Offline Offline

Activity: 154
Merit: 14


View Profile
August 05, 2018, 10:50:34 AM
 #15

you need use C# with web socket and then use TREZOR Connect API https://github.com/trezor/connect

   ⚡⚡ PRiVCY ⚡⚡   ▂▃▅▆█ ✅ PRiVCY (PRIV) is a new PoW/PoS revolutionary privacy project ● ☞ ✅ Best privacy crypto-market! ● █▆▅▃▂
    Own Your Privacy! ─────────────────║ WebsiteGithub  |  Bitcointalk  |  Twitter  |  Discord  |  Explorer ║─────────────────
   ✯✯✯✯✯                 ✈✈✈[Free Airdrop - Starts 9th June]✅[Tor]✈✈✈ ║───────────║ Wallet ➢ ✓ Windows  |  ✓ macOS  |  ✓ Linux
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 19, 2018, 05:45:46 AM
 #16

No need to use sockets. Sockets and the Trezor bridge are only workarounds because JavaScript can't talk to USB devices directly. Because C# doesn't suck you can just talk to the device directly.

Library

https://github.com/MelbourneDeveloper/Trezor.Net

My GitHub profile has libraries for KeepKey and Ledger as well. KeepKey has the same protocol as Trezor so you more or less get that for free if you crack Trezor.
Kruddler
Jr. Member
*
Offline Offline

Activity: 51
Merit: 56


View Profile
August 27, 2018, 10:08:25 PM
Merited by Piggy (2)
 #17

I've added unit tests for .NET and UWP to my library:

https://github.com/MelbourneDeveloper/Trezor.Net

I'm looking for people test and contribute. Even logging requests or issues would be great.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!