Skip to content

Commit ce49531

Browse files
committed
Merge branch 'remrandom'
2 parents 998d4a0 + c0a3df1 commit ce49531

File tree

24 files changed

+71
-318
lines changed

24 files changed

+71
-318
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
88

99
### [Unreleased]
1010
- Display granular error codes when unlock fails unexpectedly
11+
- Remove RandomNumber API endpoint
1112

1213
### 9.6.0 [released 2021-05-20]
1314
- Attempt to fix flaky SD behavior

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ endif()
8989
#
9090
# Versions MUST contain three parts and start with lowercase 'v'.
9191
# Example 'v1.0.0'. They MUST not contain a pre-release label such as '-beta'.
92-
set(FIRMWARE_VERSION "v9.6.1")
93-
set(FIRMWARE_BTC_ONLY_VERSION "v9.6.1")
94-
set(FIRMWARE_BITBOXBASE_VERSION "v9.6.1")
92+
set(FIRMWARE_VERSION "v9.7.0")
93+
set(FIRMWARE_BTC_ONLY_VERSION "v9.7.0")
94+
set(FIRMWARE_BITBOXBASE_VERSION "v9.7.0")
9595
set(BOOTLOADER_VERSION "v1.0.4")
9696

9797
find_package(PythonInterp 3.6 REQUIRED)

messages/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ set(PROTO_FILES
88
btc.proto
99
eth.proto
1010
mnemonic.proto
11-
random_number.proto
1211
system.proto
1312
perform_attestation.proto
1413
keystore.proto

messages/hww.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import "btc.proto";
2424
import "eth.proto";
2525
import "keystore.proto";
2626
import "mnemonic.proto";
27-
import "random_number.proto";
2827
import "system.proto";
2928

3029
import "perform_attestation.proto";
@@ -38,8 +37,9 @@ message Success {
3837
}
3938

4039
message Request {
40+
reserved 1;
4141
oneof request {
42-
RandomNumberRequest random_number = 1;
42+
// removed: RandomNumberRequest random_number = 1;
4343
SetDeviceNameRequest device_name = 2;
4444
SetDeviceLanguageRequest device_language = 3;
4545
DeviceInfoRequest device_info = 4;
@@ -69,10 +69,11 @@ message Request {
6969
}
7070

7171
message Response {
72+
reserved 3;
7273
oneof response {
7374
Success success = 1;
7475
Error error = 2;
75-
RandomNumberResponse random_number = 3;
76+
// removed: RandomNumberResponse random_number = 3;
7677
DeviceInfoResponse device_info = 4;
7778
PubResponse pub = 5;
7879
BTCSignNextResponse btc_sign_next = 6;

messages/random_number.options

Lines changed: 0 additions & 17 deletions
This file was deleted.

messages/random_number.proto

Lines changed: 0 additions & 23 deletions
This file was deleted.

py/bitbox02/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
OUT_DIR=bitbox02/communication/generated
1717

18-
PROTO_FILES=hww.proto common.proto backup_commands.proto bitbox02_system.proto bitboxbase.proto btc.proto eth.proto mnemonic.proto random_number.proto system.proto perform_attestation.proto keystore.proto antiklepto.proto
18+
PROTO_FILES=hww.proto common.proto backup_commands.proto bitbox02_system.proto bitboxbase.proto btc.proto eth.proto mnemonic.proto system.proto perform_attestation.proto keystore.proto antiklepto.proto
1919

2020
TARGETS=$(addprefix ${OUT_DIR}/, $(PROTO_FILES:.proto=_pb2.py))
2121

py/bitbox02/bitbox02/bitbox02/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from __future__ import print_function
1717
import sys
1818

19-
__version__ = "6.0.0"
19+
__version__ = "7.0.0"
2020

2121
if sys.version_info.major != 3 or sys.version_info.minor < 6:
2222
print(

py/bitbox02/bitbox02/bitbox02/bitbox02.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
from bitbox02.communication.generated import btc_pb2 as btc
4040
from bitbox02.communication.generated import mnemonic_pb2 as mnemonic
4141
from bitbox02.communication.generated import bitbox02_system_pb2 as bitbox02_system
42-
from bitbox02.communication.generated import random_number_pb2 as random_number
4342
from bitbox02.communication.generated import backup_commands_pb2 as backup
4443
from bitbox02.communication.generated import common_pb2 as common
4544
from bitbox02.communication.generated import keystore_pb2 as keystore
@@ -126,13 +125,6 @@ class BitBox02(BitBoxCommonAPI):
126125

127126
# pylint: disable=too-many-public-methods
128127

129-
def random_number(self) -> bytes:
130-
# pylint: disable=no-member
131-
request = hww.Request()
132-
request.random_number.CopyFrom(random_number.RandomNumberRequest())
133-
response = self._msg_query(request, expected_response="random_number")
134-
return response.random_number.number
135-
136128
def device_info(self) -> Dict[str, Any]:
137129
# pylint: disable=no-member
138130
request = hww.Request()

0 commit comments

Comments
 (0)