Open sergeylappo opened 5 years ago
Currently wallet have functionality to notify if firmware of hardware device is outdated, but last firmware versions currently are hardcoded. Here's how this could be done for Trezor https://github.com/trezor/trezor-common/blob/7d618036ab50504e245ad8651c4558d413596228/tools/coin_info.py#L274 https://beta-wallet.trezor.io/data/firmware/2/releases.json - Model T https://beta-wallet.trezor.io/data/firmware/1/releases.json - ONE Keepkey https://github.com/keepkey/kk-binary-librarian/blob/7e5faebcc1d3e904a81e21bdf740ed0e3e7c7c64/src/index.js#L6 https://api.github.com/repos/keepkey/keepkey-firmware/releases Ledger Ledger have some websocket implementation: https://github.com/LedgerHQ/ledger-live-desktop/blob/0ff2aa618f5c06d9e34d52460d42ebb93e168b45/src/helpers/urls.js#L15
FYI we're working on standing up some sort of releases.json with links to our own infra so you won't have to hit github for firmware images.
releases.json
Currently wallet have functionality to notify if firmware of hardware device is outdated, but last firmware versions currently are hardcoded. Here's how this could be done for Trezor https://github.com/trezor/trezor-common/blob/7d618036ab50504e245ad8651c4558d413596228/tools/coin_info.py#L274 https://beta-wallet.trezor.io/data/firmware/2/releases.json - Model T https://beta-wallet.trezor.io/data/firmware/1/releases.json - ONE Keepkey https://github.com/keepkey/kk-binary-librarian/blob/7e5faebcc1d3e904a81e21bdf740ed0e3e7c7c64/src/index.js#L6 https://api.github.com/repos/keepkey/keepkey-firmware/releases Ledger Ledger have some websocket implementation: https://github.com/LedgerHQ/ledger-live-desktop/blob/0ff2aa618f5c06d9e34d52460d42ebb93e168b45/src/helpers/urls.js#L15