Skip to content

Commit 5ca45a6

Browse files
committed
Merge branch 'bb02'
2 parents 399b8be + 31461d3 commit 5ca45a6

File tree

4 files changed

+400
-164
lines changed

4 files changed

+400
-164
lines changed

backend/devices/bitbox02/device.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
"github.com/digitalbitbox/bitbox-wallet-app/backend/signing"
3636
"github.com/digitalbitbox/bitbox-wallet-app/util/errp"
3737
"github.com/digitalbitbox/bitbox-wallet-app/util/logging"
38+
"github.com/digitalbitbox/bitbox-wallet-app/util/random"
3839
"github.com/digitalbitbox/bitbox-wallet-app/util/semver"
3940
"github.com/flynn/noise"
4041
"github.com/golang/protobuf/proto"
@@ -382,10 +383,11 @@ func (device *Device) SetPassword() error {
382383
}
383384
request := &messages.Request{
384385
Request: &messages.Request_SetPassword{
385-
SetPassword: &messages.SetPasswordRequest{},
386+
SetPassword: &messages.SetPasswordRequest{
387+
Entropy: random.BytesOrPanic(32),
388+
},
386389
},
387390
}
388-
389391
response, err := device.query(request)
390392
if err != nil {
391393
return err

0 commit comments

Comments
 (0)