You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,7 +13,7 @@ From the Trezor perspective, there are two types of firmware: a) the official on
13
13
Since Mintlayer is not officially supported by Trezor, the firmware we provide falls into the latter category. This has certain implications:
14
14
- When installing the firmware, the device will show the warning "UNSAFE, DO NOT USE!".
15
15
- When installing custom firmware over the official one, **the device will be wiped clean**. Make sure you have a backup of your seed phrase.
16
-
- When installing custom firmware over different custom firmware, the device will **not** be wiped clean. This makes it succeptible to the so-called "evil maid attack",
16
+
- When installing custom firmware over different custom firmware, the device will **not** be wiped clean. This makes it susceptible to the so-called "evil maid attack",
17
17
where the attacker has physical access to your device. It goes like this:
18
18
* The "maid" temporarily steals your device and installs on it firmware that she has built herself; it looks identical to the previously installed firmware, but also logs the PIN and the passphrase entered by the user. Then she puts the device back.
19
19
* You use the device.
@@ -24,19 +24,17 @@ where the attacker has physical access to your device. It goes like this:
24
24
* keep your device in a safe place;
25
25
* preferably, use a dedicated device with a dedicated seed phrase and PIN specifically for Mintlayer;
26
26
- In order to install custom firmware on a Trezor Safe family device (e.g. Safe 3 or Safe 5), you have to [unlock the bootloader first](https://trezor.io/learn/security-privacy/how-trezor-keeps-you-safe/unlocking-the-bootloader-on-trezor-safe-devices);
27
-
this is an irreversible operation after which the device authenticity check will no longer work. This means that every time you use Trezor Suite, you will be presented with a warning "Your device may have been compromised" (unless you disable
28
-
the authenticity check in the Trezor Suite's device settings).
27
+
this is an irreversible operation after which the device authenticity check will no longer work.
28
+
This means that every time you use Trezor Suite, you will be presented with a warning "Your device may have been compromised"
29
+
(unless you disable the authenticity check in the Trezor Suite's device settings).
29
30
30
-
### Building and flashing the firmware
31
-
32
-
#### A note about versioning
31
+
### A note about versioning
33
32
34
33
Firmware built from the Mintlayer fork has two version numbers:
35
34
- A version number assigned by Trezor; this is the original release that we've based our release upon
36
35
and this is what is shown to you on the device screen when you flash the firmware.
37
-
- An additional version number assigned by us, to which we refer as "Mintlayer firmware version".
38
-
It is obtainable via `trezorctl mintlayer get-firmware-info` and it's what
39
-
our wallets display in their UI.
36
+
- An additional version number assigned by us, to which we refer as "Mintlayer firmware version";
37
+
this is what our wallets display in their UI.
40
38
41
39
The table of correspondence between the two versions can be found in the [firmware repository](https://github.com/mintlayer/mintlayer-trezor-firmware/blob/mintlayer-master/README.md).
42
40
@@ -50,28 +48,47 @@ Note: if you've built Core wallets directly from `master` instead of using a spe
50
48
you'll probably won't be able to use a specific release for the firmware either.
51
49
Instead, you'll have to build it from `mintlayer-master`.
52
50
53
-
#### How to build
51
+
### Flashing pre-built firmware
52
+
53
+
If you are interested in a particular release, you may just go to [the firmware releases page](https://github.com/mintlayer/mintlayer-trezor-firmware/releases),
54
+
download the `.bin` file corresponding to your device model and install it via Trezor Suite:
55
+
- Inside Trezor Suite go to "Settings" -> "Device" -> "Danger area" -> "Install custom firmware" and click "Install".
56
+
- Follow the instructions that will appear on your screen.
57
+
58
+
Note:
59
+
- Trezor Safe 3 comes in two revisions, A and B, that look identical but require different firmware.\
60
+
Determining the revision of your particular device is non-trivial, unfortunately:
61
+
* If you have `trezorctl` installed, which is the Trezor command line tool, you may run `trezorctl get-features`[^1]
62
+
(after having connected the device to the PC and having entered the PIN) and then look for the `internal_model` value
63
+
in the output - 'T2B1' will mean you have revision A and 'T3B1' revision B.
64
+
* In any case, the device won't allow you to install wrong firmware, so you may try the one for revision A
65
+
and if that fails, try the one for revision B instead.
66
+
- Trezor Model One is not supported.
67
+
68
+
### Building the firmware from source
69
+
70
+
There are two options here:
71
+
- A more verbose approach using `Nix`, useful during development.
72
+
- A simpler approach using `Docker`; this results in reproducible builds and is used on our CI when creating releases.
73
+
74
+
In either case, you'll first need to clone the repository and checkout the required revision:
75
+
- If you want the latest version that is in development, checkout the `mintlayer-master` branch.
76
+
- If you want a particular release, checkout the tag corresponding to that release. The list of tags
77
+
can be found [here](https://github.com/mintlayer/mintlayer-trezor-firmware/tags).
78
+
79
+
In the examples below we'll be assuming that you want the release 1.0.0, whose tag is `mintlayer-v1.0.0`.
80
+
81
+
#### Building the firmware using `Nix`
54
82
55
83
##### Get the source code
56
84
57
-
Clone the repository and `cd` into it:
85
+
Clone the repository, `cd` into the directory and checkout the required revision:
0 commit comments