Coder Social home page Coder Social logo

8go / trezorlistpublicaddresses Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 21 KB

:page_with_curl: tiny utility tool to list batches of public Bitcoin addresses from your Trezor device, offline, multi-accounts :lock:

License: GNU General Public License v3.0

Python 100.00%
bitcoin addresses trezor trezor-device trezor-wallet cryptocurrencies crypto privacy privacy-protection ofline

trezorlistpublicaddresses's Introduction

๐Ÿ“ƒ TrezorListPublicAddresses ๐Ÿ”’

This is a tiny utility tool to list batches of public Bitcoin addresses from your Trezor device. This small Python program by default lists the first 100 public Bitcoin addresses for the first 3 accounts for all 3 address types (classic 1-addresses, p2sh-segwit 3-addresses, and native segwit bc1-addresses).

Features

  • You can print batches of public Bitcoin addresses, any number you want, 10, 100, 1000 or higher.
  • You can print BIP44, BIP49 and BIP84 addresses. I.e. you can list classic 1-addresses, p2sh-segwit 3-addresses, and/or native segwit bc1-addresses.
  • You can print the addresses for multiple accounts.
  • You can print external and internal (change) addresses.
  • It works offline. No internet needed.
  • Just one small file of about 4KB.
  • Easy to verify correctness yourself. This program really just has a single line of interesting code, where it calls btc.get_address(...) from the Python trezorlib repeatedly with some appropriate arguments to ask the Trezor device for the public Bitcoin addresses.
  • Works with Trezor passphrases, allows passphrase to be entered on the device (i.e. the Trezor itself) resulting in highest level of security.
  • Written in Python
  • Open source, you can view it and modify it.

Runtime requirements

Building

  • These is nothing to build. It is just a single Python file. Copy it anywhere.

Running it, Using it

  • After downloading or copying the file, change the file permissions such that you can execute the file. E.g. on Linux do a chmod 544 or similar.
  • Connect your Trezor device and start program with TrezorListPublicAddresses.py or ./TrezorListPublicAddresses.py or python TrezorListPublicAddresses.py or python3 TrezorListPublicAddresses.py.
  • If and only if desired you can edit it with your favorite text editor to change some parameters like amount of addresses, accounts, etc.
  • Tell your friends :)

Alternatives

If you don't like this program you can use the following alternatives:

  • trezorctl, read also How to create bulk of addresses. This is ok for Trezor One. This works also for Trezor Model T if you have no passphrase or you are entering the passphrase on the host. However, trezorctl will not work (as of March 2020 with latest firmware updates) if you have a passphrase and want to enter it on the device, because in this case the Trezor Model T will ask you for the passphrase at the generation of every single address! However, entering the passphrass on the host, i.e. keyboard, is not the safest option, and hence not recommended for high security.
  • If you have your extended public key for a given address type and a given account then you can use tools like these two to compute your public addresses. But just for getting addresses these tools are not as convenient.

</> on :octocat: with โค๏ธ

trezorlistpublicaddresses's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.