Offline QR
Build a "device stays offline" signing loop using UR-encoded QR codes.
How It Flows
| Stage | What happens |
|---|---|
| Request preparation | The app encodes the chain-specific signing request as UR data and displays animated QR frames. |
| Device-side signing | UKey Wallet reads the QR frames, shows the signing details, and signs offline after user confirmation. |
| Signature handoff | The device renders the signature response as an animated UR QR. |
| App-side completion | The app scans the response, validates it, then broadcasts through your own network path. |
Chain Start
| Chain | Request Type | Response Type |
|---|---|---|
| Ethereum & EVM | eth-sign-request | eth-signature |
| Bitcoin (PSBT) | crypto-psbt | crypto-psbt |
| Solana | sol-sign-request | sol-signature |
| Tron | tron-sign-request | tron-signature |
API Notes
- Basic API – Core UR types:
CryptoHDKey,CryptoCoinInfo,CryptoKeypath
Deps
# Keystone SDK 与 UR 注册组件
npm install @keystonehq/keystone-sdk @keystonehq/bc-ur-registry-eth
# UR 基础能力包
npm install @ngraveio/bc-ur
Demos
Note: Air-Gap is offline by design. There is no online browser playground.