develop and integrate a cgo-free hid library for ledger support #3051
Labels
🗺️good first issue🗺️
Ideal for newcomer contributors
help wanted
Want to contribute? We recommend these issues.
🌟 improvement
performance improvements, refactors ...
This is unlikely to be officially tackled by the core team, but can be a fun pet project for anyone who's interested.
Currently, we use https://github.com/zondax/hid indirectly, to support ledger in
gnokey
:There is an existing attempt, started by zserge, to make a non-cgo hid driver. However, it only works on linux.
For inclusion in gno, there should be a hid library, possibly mimicking zondax/hid's API, which doesn't use cgo and instead uses build tags and pure go functions. Then, we can adapt the existing ledger libraries so that they use the new API.
Avoiding cgo simplifies our (cross-)compilation processes and allows to create entirely static binaries.
Related: #2928
The text was updated successfully, but these errors were encountered: