BitBoxSwiss / bitbox02-firmware

Firmware code of the BitBox02 hardware wallet
https://bitbox.swiss/bitbox02
Apache License 2.0
215 stars 80 forks source link

simulator : build configuration update and multiple sequential client… #1197

Closed asi345 closed 2 months ago

asi345 commented 2 months ago

… support

Since simulator and c unit tests use the same build script(build-build), sanitization options defined for c unit tests were also passed to simulator and this was causing more dependencies for simulator binary. Of course this contributes to more size. Simulator now has this sanitization options set to false to automatically avoid including them.

Another issue that was faced while implementing HWI integration was multiple client support. In HWI, one client could access to simulator for initialization and then disconnect, while newer clients could connect and directly test the functionalities of wallet API, assuming that the device is already initialized. Parallel handling of clients are still not supported, also not expected from HWI.