fix trezor guide

This commit is contained in:
BitcoinMechanic
2023-05-25 17:09:01 -07:00
parent 189bd79553
commit 635df930ba
25 changed files with 165 additions and 116 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

View File

@@ -11,126 +11,14 @@ Electrs will be more performant but will use more system resources.
Once up and running you can follow these instructions to setup a signing device with Specter.
There are two ways to create a wallet from a signing device using Specter.
There are two ways to do this.
Some signing devices permit you to "air gap" which means transferring the xpub (and subsequent unsigned/signed transactions) back and forth between Specter and the signing device via an SD card (Coldcard for example) - other devices require a direct USB connection (Trezor One for example).
Some signing devices permit you to **airgap** which means transferring the xpub and subsequent unsigned/signed transactions back and forth between Specter and the signing device via an SD card (Coldcard for example) or via QR codes. Other devices require a **direct USB connection** i.e the Trezor One.
.. note:: Using an airgapped signing device like a Coldcard is far easier to setup as unsigned transactions can be simply downloaded to your local machine where they can be saved to an SD card and transferred to a signing device for signing. Signing devices that connect via USB require a more complicated setup.
.. note:: Using an airgapped signing device like a Coldcard is far easier to setup as unsigned transactions can be simply downloaded to your local machine from the Specter webUI where they can be saved to an SD card and transferred to a signing device for signing, then uploaded back to the Specter UI once signed just like uploading any file to a website or adding an attachment to an email. Signing devices that connect via USB require a more complicated setup.
.. tabs::
.. group-tab:: USB Connected Signing Devices:
For devices like the Trezor One, air gapping is not possible. This means importing xpubs via USB - Specter permits this via the HWI which requires running a second instance of Specter on your *local* machine (i.e *not* your server).
#. Start by heading to Specter running on your server (you can use either Tor or LAN - if you are accessing your server over LAN the Launch UI button will open up the LAN interface for Specter - if you're accessing over Tor it will open up the Tor interface).
#. Click on the cog in the top right, or **Update your settings**:
.. figure:: /_static/images/services/specter/img-1.png
:width: 60%
:alt: img-1
#. Click **USB devices** and then **Remote Specter USB connection**:
.. figure:: /_static/images/services/specter/img-2.png
:width: 60%
:alt: img-2
#. Click **copy** under step 2:
.. figure:: /_static/images/services/specter/img-3.png
:width: 60%
:alt: img-3
#. Now start Specter on your *local* machine (**not** your server) by either installing the application [here](https://specter.solutions) or run it in the background by following the instructions `here <https://github.com/cryptoadvance/specter-desktop#installing-specter-from-pip>`_.
#. Once it's up and running, Head to the HWI settings here - http://127.0.0.1:25441/hwi/settings/
.. figure:: /_static/images/services/specter/img-4.png
:width: 60%
:alt: img-4
#. Paste in the domain that you copied from Specter running on your server and click Update
.. figure:: /_static/images/services/specter/img-5.png
:width: 60%
:alt: img-5
#. Now connect your Trezor One or other signing device to your local machine:
.. figure:: /_static/images/services/specter/img-6.png
:width: 60%
:alt: img-6
#. Head back to Specter on your server and click **Save Changes**
#. Click **Test connection**
#. You should see this along the top of the screen:
.. figure:: /_static/images/services/specter/img-7.png
:width: 60%
:alt: img-7
.. note:: At current time of writing, you must hit save **before** hitting test connection.
#. You can now click **Add new device** and select the type of signing device you're using (in this case, a Trezor).
.. figure:: /_static/images/services/specter/img-8.png
:width: 60%
:alt: img-8
#. Name the device and click **Get via USB**:
.. figure:: /_static/images/services/specter/img-9.png
:width: 60%
:alt: img-9
#. You may be asked for your PIN and passphrase here, and you may need to confirm extraction on the signing device.
#. Specter will then begin extracting the public key(s) from your device:
.. figure:: /_static/images/services/specter/img-10.png
:width: 60%
:alt: img-10
#. You may not want all the default types of extended public key. Remove/keep the ones you want by clicking "edit" and "remove".
#. Click "Continue"
#. You can now **Add new wallet** or **create single key wallet**:
.. figure:: /_static/images/services/specter/img-12.png
:width: 60%
:alt: img-12
.. tip:: If you want to create a multisig wallet, add another device first, and make sure you generated an xpub intented for multisig on the first device, then come back to this step.
#. Select the device (or devices if you are making a multisig wallet) that you want to use.
.. figure:: /_static/images/services/specter/img-13.png
:width: 60%
:alt: img-13
#. Name the wallet and select the key(s) you want to use.
.. tip:: (If you only have one key, it will automatically use that key)
#. Select **Scan for existing funds** if you have already used this wallet and wish to establish the transaction history, if this is a brand new wallet this is not necessary and should be deselected.
#. Click **Create wallet**:
.. figure:: /_static/images/services/specter/img-11.png
:width: 60%
:alt: img-11
#. If you selected "rescan" you can refresh the page and watch as your bitcoin node rescans the blockchain for your wallet's history.
.. note:: This will be very slow if Specter is configured to connect to Bitcoin Core directly, and extremely fast if connecting via Electrs.
Specter is now setup to use your signing device!
.. group-tab:: Air Gapped Signing Devices
This part of the guide will go over how to upload an xpub from a device that permits air gapping - in this case a Coldcard.
@@ -191,4 +79,165 @@ Some signing devices permit you to "air gap" which means transferring the xpub (
#. If you selected "rescan" you can refresh the page and watch as your bitcoin node rescans the blockchain for your wallet's history.
Specter is now setup to use your signing device!
Specter is now setup to use your signing device!
.. group-tab:: USB Connected Signing Devices:
For devices like the Trezor One on which air gapping is not possible xpubs must be imported via USB - Specter permits this via the HWI which requires running a second instance of Specter on your *local* machine (i.e *not* your server).
.. note:: This means you will be running Specter as a service on your Start9 server, which you will be accessing through a webUI and *in addition* you will be running **Specter Desktop** as an application on your local device (laptop/desktop).
#. Download and install `Specter Desktop <https://specter.solutions/downloads/>`_ on your local machine.
#. Now head to Specter running on your server and click Launch UI.
.. figure:: /_static/images/services/specter/launch-ui.png
:width: 60%
:alt: launch-ui
.. tip:: You can use either Tor or LAN - if you are accessing your server over LAN the Launch UI button will open up the LAN interface for Specter, if you're accessing over Tor it will open up the Tor interface.
.. note:: We recommend using Tor (.onion) as this will mean that you will be able to use your signing device from anywhere in the world.
#. Click **Update settings**:
.. figure:: /_static/images/services/specter/update-settings.png
:width: 60%
:alt: update-settings
#. Ensure **USB Devices** is selected - click **Remote Specter USB connection** and click **Save**:
.. figure:: /_static/images/services/specter/remote-usb.png
:width: 60%
:alt: remote-usb
#. Scroll down and copy the address highlighted below (yours will be different):
.. figure:: /_static/images/services/specter/address-for-copy.png
:width: 60%
:alt: address-for-copy
Include the http:// (if .onion) or https:// (if .local) at the start, and the slash at the end.
#. Now start Specter Desktop on your **local** machine:
.. figure:: /_static/images/services/specter/specter-desktop-app.png
:width: 60%
:alt: specter-desktop-app
#. Once it's up and running, Head to the HWI settings here - http://127.0.0.1:25441/hwi/settings/
.. figure:: /_static/images/services/specter/hwi-ip.png
:width: 60%
:alt: hwi-ip
#. Paste in the address that you copied and click **Update**:
.. figure:: /_static/images/services/specter/hwi-new-address.png
:width: 60%
:alt: hwi-new-address
#. Now connect your signing device to your local machine:
.. figure:: /_static/images/services/specter/connect-trezor.png
:width: 60%
:alt: connect-trezor
.. note:: You are **not** connecting it to your Start9 server - the point of this is so that your server's Specter can reach out to your signing device from anywhere in the world via your local machine.
#. Head back to Specter on your **server**, click **Save** if you haven't already and then click **Test connection**:
.. figure:: /_static/images/services/specter/test-connection.png
:width: 60%
:alt: test-connection
#. If the connection is working, you will see this message in the bottom right:
.. figure:: /_static/images/services/specter/success-connection.png
:width: 60%
:alt: success-connection
.. tip:: If this isn't working it could be for a number of reasons. Your signing device may need to be updated to the latest firmware, or simply still require setup. If using a Trezor you must first set it up in the `Trezor Suite <https://trezor.io/trezor-suite>`_. Other reasons this connection could fail is if your LAN isn't setup or Tor is not running on your local device. See :ref:`here<connecting>` for advice on how to setup LAN and Tor on your device.
#. You can now click **Add device** and select the type of signing device you're using (in this case, a Trezor).
.. figure:: /_static/images/services/specter/add-device.png
:width: 60%
:alt: add-device
#. Name the device and click **Get via USB**:
.. figure:: /_static/images/services/specter/name-device.png
:width: 60%
:alt: name-device
#. You will be asked for your PIN and passphrase here, and you may need to confirm extraction on the signing device.
.. figure:: /_static/images/services/specter/pin-passphrase.png
:width: 60%
:alt: pin-passphrase
.. tip:: Specter will now pull wallet info from your signing device. No private keys are leaving your signing device, only addresses.
#. You will now see a few extended public keys (xpubs):
.. figure:: /_static/images/services/specter/xpubs.png
:width: 60%
:alt: xpubs
#. You may not want all the default types of extended public key. Remove/keep the ones you want by clicking **edit**, removing the ones you don't want and then clicking **Done**:
.. figure:: /_static/images/services/specter/remove-unwanted.png
:width: 60%
:alt: remove-unwanted
.. tip:: If you aren't sure what to do here, a sensible default is to leave the second option - with the derivation **m/84h/0h/0h** as in the picture below. This will result in addresses beginning with **bc1** - the most commonly used and most modern address type (native segwit). There is no harm in adding multiple derivation paths, but if you aren't sure which one to use, you probably want **m/84h/0h/0h**.
#. Click **Continue**:
.. figure:: /_static/images/services/specter/click-continue.png
:width: 60%
:alt: click-continue
#. You can now create a new wallet by clicking on the prompt here where it says **Create single key wallet** or by clicking on **Add wallet**:
.. figure:: /_static/images/services/specter/add-wallet.png
:width: 60%
:alt: add-wallet
.. tip:: If you want to create a multisig wallet, add another device first, and make sure you generated an xpub intented for multisig on the first device, then come back to this step.
#. Select the device (or devices if you are making a multisig wallet) that you want to use and click **Continue**:
.. figure:: /_static/images/services/specter/pick-device.png
:width: 60%
:alt: pick-device
#. Create a name for this wallet::
.. figure:: /_static/images/services/specter/name-create.png
:width: 60%
:alt: name-create
.. tip:: (If you only have one key, it will automatically use that key). You cannot select a configuration that doesn't match the available derivation path(s).
#. Select **Scan for existing funds** if you have already used this wallet and wish to establish the transaction history, if this is a brand new wallet this is not necessary and should be deselected:
.. figure:: /_static/images/services/specter/scan-funds.png
:width: 60%
:alt: scan-funds
#. Click **Create wallet**:
.. figure:: /_static/images/services/specter/create-wallet.png
:width: 60%
:alt: create-wallet
.. note:: Rescanning will be very slow if Specter is configured to connect to Bitcoin Core directly, and extremely fast if connecting via Electrs.
Specter is now setup to use your signing device!
.. figure:: /_static/images/services/specter/final-screen-trezor.png
:width: 60%
:alt: final-screen-trezor