feat: integrate OneKey hardware wallet over BLE (hd-ble-sdk)#6900
Open
wabicai wants to merge 3 commits into
Open
feat: integrate OneKey hardware wallet over BLE (hd-ble-sdk)#6900wabicai wants to merge 3 commits into
wabicai wants to merge 3 commits into
Conversation
6be9bf9 to
c976d6e
Compare
0dfaf23 to
24e142e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add OneKey hardware wallet support via Bluetooth Low Energy (BLE) for Bitcoin Keeper.
Architecture
Modal-based Interaction (OneKeyBleModal)
All primary OneKey flows use OneKeyBleModal - a self-contained modal component:
Dedicated Screens (transaction flows)
SignWithOneKeyBle- PSBT signing (auto-connects via stored connectId)SignMessageOneKeyBle- Message signing (auto-connects via stored connectId)SDK UI Event System
onekeyUIEmitter(DeviceEventEmitter) forwards SDK UI events to componentsDevice Reconnection
bleConnectIdstored insigner.extraDataduring setupDependencies
@onekeyfe/hd-ble-sdk- BLE transport for React Native@onekeyfe/hd-core- SDK core (UI_EVENT, UI_REQUEST, UI_RESPONSE)@onekeyfe/hd-shared- Shared types and error codes@onekeyfe/hd-transport-react-native- RN transport layerSigner Naming
signerName: Device type (e.g. "OneKey Pro")signerDescription: BLE name (e.g. "Pro 04DD")extraData.bleConnectId: Stored for reconnectionError Handling
Smoke Test Checklist
Setup
Health Check
Address Verification
Transaction Signing
Message Signing
Shop Page
Error Cases