Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ endif()
#
# Versions MUST contain three parts and start with lowercase 'v'.
# Example 'v1.0.0'. They MUST not contain a pre-release label such as '-beta'.
set(FIRMWARE_VERSION "v9.24.0")
set(FIRMWARE_VERSION "v9.25.0")
set(BOOTLOADER_VERSION "v1.1.2")

find_package(PythonInterp 3.6 REQUIRED)
Expand Down
3 changes: 3 additions & 0 deletions messages/bitbox02_system.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ message SetDeviceNameRequest {
message SetPasswordRequest {
bytes entropy = 1;
}

message ChangePasswordRequest{
}
1 change: 1 addition & 0 deletions messages/hww.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ message Request {
CardanoRequest cardano = 27;
BIP85Request bip85 = 28;
BluetoothRequest bluetooth = 29;
ChangePasswordRequest change_password = 30;
}
}

Expand Down
11 changes: 11 additions & 0 deletions py/bitbox02/bitbox02/bitbox02/bitbox02.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ def set_password(self, entropy_size: int = 32) -> bool:
raise
return True

def change_password(self) -> None:
"""
Returns True if the user changes password successfully by
unlocking with old password and entering and confirming new password.
Raises a Bitbox02Exception on failure.
"""
# pylint: disable=no-member
request = hww.Request()
request.change_password.CopyFrom(bitbox02_system.ChangePasswordRequest())
self._msg_query(request, expected_response="success")

def create_backup(self) -> bool:
"""
Returns True if the backup was created successfully.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,13 @@ class SetPasswordRequest(google.protobuf.message.Message):
def ClearField(self, field_name: typing.Literal["entropy", b"entropy"]) -> None: ...

global___SetPasswordRequest = SetPasswordRequest

@typing.final
class ChangePasswordRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

def __init__(
self,
) -> None: ...

global___ChangePasswordRequest = ChangePasswordRequest
8 changes: 4 additions & 4 deletions py/bitbox02/bitbox02/communication/generated/hww_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading