Bitcoin Forum
June 25, 2019, 03:14:51 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python-TREZOR: Do bech32/bc1 addresses work yet?  (Read 88 times)
Carlton Banks
Legendary
*
Offline Offline

Activity: 2408
Merit: 1695



View Profile
June 09, 2018, 04:14:58 PM
 #1

so I found this info about using bech32 addresses with python-trezor: https://github.com/trezor/python-trezor/blob/master/docs/EXAMPLES.rst#bitcoin-examples

Quote
Get first receiving address of first account for Bitcoin (Bech32 native SegWit P2WPKH):

trezorctl get_address --coin Bitcoin --script-type segwit --address "m/49'/0'/0'/0/0"

Get first receiving address of first account for Bitcoin (SegWit-in-P2SH):

trezorctl get_address --coin Bitcoin --script-type p2shsegwit --address "m/49'/0'/0'/0/0"


But in the tx signing section following, there's no mention of bech32. Anyone have any experience or knowledge of whether a Trezor will sign transactions spending outputs from bc1/bech32 addresses?

Vires in numeris
1561475691
Hero Member
*
Offline Offline

Posts: 1561475691

View Profile Personal Message (Offline)

Ignore
1561475691
Reply with quote  #2

1561475691
Report to moderator
1561475691
Hero Member
*
Offline Offline

Posts: 1561475691

View Profile Personal Message (Offline)

Ignore
1561475691
Reply with quote  #2

1561475691
Report to moderator
1561475691
Hero Member
*
Offline Offline

Posts: 1561475691

View Profile Personal Message (Offline)

Ignore
1561475691
Reply with quote  #2

1561475691
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
BitCryptex
Hero Member
*****
Offline Offline

Activity: 616
Merit: 779


Write @BitCryptex or quote my post to notify me


View Profile WWW
June 09, 2018, 09:22:05 PM
 #2

As I replied you in TREZOR thread, you can already spend from bech32 address if you use Electrum. Since I am a member of TREZOR Telegram channel, I have decided to ask their team this question and it turns out that it is possible to spend from bc1 address using python-trezor but I'm still waiting for more detailed reply on how to do it. I have been waiting for about 2 hours, I will update my posts once I get instructions.

Carlton Banks
Legendary
*
Offline Offline

Activity: 2408
Merit: 1695



View Profile
June 21, 2018, 11:50:23 AM
 #3

it turns out that it is possible to spend from bc1 address using python-trezor but I'm still waiting for more detailed reply on how to do it. I have been waiting for about 2 hours, I will update my posts once I get instructions.

Any updates then BitCryptex?

I was unsure whether I needed to use the BIP 49 or BIP 84 derivation path, or alternatively that some other argument needs to be supplied like when the address itself is queried (the python-trezor documentation seemed to imply that extra arguments can't be supplied to the trezorctl signing command).

Vires in numeris
BitCryptex
Hero Member
*****
Offline Offline

Activity: 616
Merit: 779


Write @BitCryptex or quote my post to notify me


View Profile WWW
June 21, 2018, 12:27:46 PM
Merited by Carlton Banks (5)
 #4

Any updates then BitCryptex?

I have just got a reply from stick. He has just altered the documentation.

You need to use BIP 84 derivation path which for native SegWit is: "m/84'/0'/0'/0/0"


Carlton Banks
Legendary
*
Offline Offline

Activity: 2408
Merit: 1695



View Profile
June 21, 2018, 01:31:53 PM
 #5

Thanks BitCryptex (and stick of course)

I might put together a guide thread: Using TREZOR 1 on Qubes 4.0 if there's any interest. It's certainly taken a little configuring so that it works smoothly (Trezor Bridge service needs a little modifying to get it working, for example).




@mods: shouldn't there be a "Trezor" sub board in Alternative Clients? Or maybe just change the names so that it makes more sense, i.e. replace "Alternative Clients" with "BTC Wallets/Clients", then have separate subs for Bitcoin Core, Armory, Electrum, Trezor etc?

Vires in numeris
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!