File tree Expand file tree Collapse file tree 4 files changed +400
-164
lines changed Expand file tree Collapse file tree 4 files changed +400
-164
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments