@onekeyfe/hwk-trezor-adapter 1.1.34-alpha.4 → 1.2.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12 -98
- package/dist/index.d.ts +12 -98
- package/dist/index.js +109 -832
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -807
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHardwareWallet, IConnector, TransportType, DeviceInfo, Response, ChainCapability, AllNetworkGetAddressParams, AllNetworkAddressResponse,
|
|
1
|
+
import { IHardwareWallet, IConnector, TransportType, DeviceInfo, Response, ChainCapability, AllNetworkGetAddressParams, AllNetworkAddressResponse, TrezorDeviceSettingsParams, TrezorBrightnessParams, TrezorChangePinParams, UiResponseEvent, ChainForFingerprint, ICommonCallParams, EvmGetAddressParams, EvmAddress, EvmSignTxTrezorParams, EvmSignedTx, EvmSignMsgParams, EvmSignature, EvmSignTypedDataParams, BtcGetAddressParams, BtcAddress, BtcGetPublicKeyParams, BtcPublicKey, BtcSignTxParams, BtcSignedTx, BtcSignPsbtParams, BtcSignedPsbt, BtcSignMsgParams, BtcSignature, SolGetAddressParams, SolAddress, SolSignTxParams, SolSignedTx, SolSignMsgParams, SolSignature, TronGetAddressParams, TronAddress, TronSignTxParams, TronSignedTx, TronSignMsgParams, TronSignature, HardwareEventMap, DeviceEventListener, EvmEthereumDefinitions, ConnectorDevice } from '@onekeyfe/hwk-adapter-core';
|
|
2
2
|
|
|
3
3
|
type TrezorPassphraseCallParams = {
|
|
4
4
|
passphraseState?: string;
|
|
@@ -28,7 +28,10 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
28
28
|
private static _normalizeCallArgs;
|
|
29
29
|
private static _splitCommonParams;
|
|
30
30
|
private static _withAllNetworkRequestCommonParams;
|
|
31
|
+
private static readonly _sensitiveLogKeys;
|
|
32
|
+
private static _normalizeLogKey;
|
|
31
33
|
private static _sanitizeForLog;
|
|
34
|
+
private static _redactForLog;
|
|
32
35
|
private static _errorForLog;
|
|
33
36
|
private _setPassphraseRequestContext;
|
|
34
37
|
private static _trezorFailureMessage;
|
|
@@ -45,7 +48,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
45
48
|
private static _isStaleSessionError;
|
|
46
49
|
private static _errorCode;
|
|
47
50
|
private static _isConnectionUnavailableError;
|
|
48
|
-
private static _isRecoverableProtocolResidueError;
|
|
49
51
|
/**
|
|
50
52
|
* Race a promise against an abort signal. Copied from LedgerAdapter:
|
|
51
53
|
* IConnector.call() can't actually be cancelled at the protocol level, but
|
|
@@ -74,21 +76,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
74
76
|
getSupportedChains(): ChainCapability[];
|
|
75
77
|
allNetworkGetAddress(connectId: string, deviceId: string, params: AllNetworkGetAddressParams): Promise<Response<AllNetworkAddressResponse[]>>;
|
|
76
78
|
getFeatures(connectId: string): Promise<Response<Record<string, unknown>>>;
|
|
77
|
-
/**
|
|
78
|
-
* Device authenticity attestation. Sends a host-generated challenge, has the
|
|
79
|
-
* device sign it with its secure-element key, then verifies the returned
|
|
80
|
-
* certificate chain up to a trusted Trezor root CA. On success returns a
|
|
81
|
-
* `deviceId` that uniquely identifies the physical device, survives wipe, and
|
|
82
|
-
* cannot be forged from a seed. Only trust the result when `verified` is true
|
|
83
|
-
* (and `usedDebugKey` is false in production).
|
|
84
|
-
*
|
|
85
|
-
* Requires a secure-element model (Safe 3 = T2B1/T3B1, Safe 5 = T3T1, T3W1)
|
|
86
|
-
* and an on-device confirmation. Older models (T1B1, T2T1) will fail.
|
|
87
|
-
*
|
|
88
|
-
* `dangerouslyAllowDebugKeys` accepts simulator / development root keys — NEVER
|
|
89
|
-
* enable it in a production accounting flow, it lets an emulator mint any id.
|
|
90
|
-
*/
|
|
91
|
-
verifyDeviceAuthenticity(connectId: string, params?: DeviceAuthenticityParams): Promise<Response<DeviceAuthenticityResult>>;
|
|
92
79
|
deviceSettings(connectId: string, params: TrezorDeviceSettingsParams): Promise<Response<Record<string, unknown>>>;
|
|
93
80
|
setBrightness(connectId: string, params?: TrezorBrightnessParams): Promise<Response<Record<string, unknown>>>;
|
|
94
81
|
changePin(connectId: string, params?: TrezorChangePinParams): Promise<Response<Record<string, unknown>>>;
|
|
@@ -103,14 +90,13 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
103
90
|
*/
|
|
104
91
|
uiResponse(response: UiResponseEvent): void;
|
|
105
92
|
/**
|
|
106
|
-
* Returns
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* be the same value anyway).
|
|
93
|
+
* Returns the Trezor `device_id` from Features — a random 12-byte value the
|
|
94
|
+
* device stores and regenerates on `wipe_device`. It identifies the PHYSICAL
|
|
95
|
+
* DEVICE, not a seed/wallet: it is shared across passphrase wallets and
|
|
96
|
+
* changes after wipe/restore, so it suits device-match checks but must NOT be
|
|
97
|
+
* used as a wallet fingerprint (use `passphraseState` for wallet identity).
|
|
98
|
+
* Unlike Ledger (which hashes a per-chain address), it is chain-global, so
|
|
99
|
+
* `chain` is accepted for API parity but ignored.
|
|
114
100
|
*/
|
|
115
101
|
getChainFingerprint(connectId: string, _deviceId: string, _chain: ChainForFingerprint): Promise<Response<string>>;
|
|
116
102
|
/**
|
|
@@ -206,78 +192,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
206
192
|
private _ensureDevicePermission;
|
|
207
193
|
}
|
|
208
194
|
|
|
209
|
-
type CertPubKeys = {
|
|
210
|
-
rootPubKeysOptiga: string[];
|
|
211
|
-
rootPubKeysTropic?: string[];
|
|
212
|
-
};
|
|
213
|
-
type ModelPubKeys = CertPubKeys & {
|
|
214
|
-
debug?: CertPubKeys;
|
|
215
|
-
};
|
|
216
|
-
interface DeviceAuthenticityConfig {
|
|
217
|
-
version: number;
|
|
218
|
-
[model: string]: ModelPubKeys | number | undefined;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** Raw fields taken from a Trezor `AuthenticityProof` message. */
|
|
222
|
-
type AuthenticityProof = {
|
|
223
|
-
optiga_certificates: string[];
|
|
224
|
-
optiga_signature: string;
|
|
225
|
-
tropic_certificates?: string[];
|
|
226
|
-
tropic_signature?: string;
|
|
227
|
-
mcu_certificates?: string[];
|
|
228
|
-
mcu_signature?: string;
|
|
229
|
-
};
|
|
230
|
-
type AuthenticateDeviceResult = {
|
|
231
|
-
/**
|
|
232
|
-
* True only when every layer implemented by this verifier and required by
|
|
233
|
-
* the explicit model policy verified up to a trusted Trezor root CA AND the
|
|
234
|
-
* device signed our challenge:
|
|
235
|
-
* - Optiga (all secure-element models), and
|
|
236
|
-
* - Tropic (T3W1 / Safe 7).
|
|
237
|
-
* This mirrors Trezor Connect's production authenticity policy. The raw MCU
|
|
238
|
-
* fields remain in the returned proof but are not a client-side pass/fail
|
|
239
|
-
* condition.
|
|
240
|
-
* The reward backend must independently verify the same raw proof under its
|
|
241
|
-
* own versioned policy; this client result is only a UX preview.
|
|
242
|
-
*/
|
|
243
|
-
verified: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Stable per-device identifier: the X.509 serial number (OID 2.5.4.5) when
|
|
246
|
-
* present (T3W1+), otherwise the SHA-256 of the device attestation public key.
|
|
247
|
-
* Survives wipe/recovery and cannot be forged from a seed. Do NOT trust when
|
|
248
|
-
* `verified` is false — it is then attacker-controlled.
|
|
249
|
-
*/
|
|
250
|
-
deviceId?: string;
|
|
251
|
-
/** Raw device attestation public key (hex) from the Optiga device certificate. */
|
|
252
|
-
deviceCertPubKey?: string;
|
|
253
|
-
/** X.509 subject serial number (hex), only present on T3W1 and above. */
|
|
254
|
-
serialNumber?: string;
|
|
255
|
-
rootPubKey?: string;
|
|
256
|
-
caPubKey?: string;
|
|
257
|
-
/**
|
|
258
|
-
* True when the chain matched a DEBUG/staging root key (simulator / dev
|
|
259
|
-
* device). A production accounting flow must reject verified results that
|
|
260
|
-
* have `usedDebugKey === true`.
|
|
261
|
-
*/
|
|
262
|
-
usedDebugKey?: boolean;
|
|
263
|
-
/** Failure reason when `verified` is false. */
|
|
264
|
-
error?: string;
|
|
265
|
-
};
|
|
266
|
-
declare const getRequiredDeviceAuthenticityLayers: (deviceModel: string) => readonly ('optiga' | 'tropic')[];
|
|
267
|
-
/**
|
|
268
|
-
* Verify a Trezor `AuthenticityProof` against a challenge and derive a stable
|
|
269
|
-
* per-device id. `challenge` must be the exact random bytes sent in the
|
|
270
|
-
* `AuthenticateDevice` request. Never throws — malformed input from a malicious
|
|
271
|
-
* device is folded into `{ verified: false }`.
|
|
272
|
-
*/
|
|
273
|
-
declare const authenticateDeviceFromProof: ({ proof, challenge, deviceModel, config, allowDebugKeys, }: {
|
|
274
|
-
proof: AuthenticityProof;
|
|
275
|
-
challenge: Buffer;
|
|
276
|
-
deviceModel: string;
|
|
277
|
-
config?: DeviceAuthenticityConfig | undefined;
|
|
278
|
-
allowDebugKeys?: boolean | undefined;
|
|
279
|
-
}) => AuthenticateDeviceResult;
|
|
280
|
-
|
|
281
195
|
/**
|
|
282
196
|
* Opt-in helpers for fetching Trezor Ethereum "definitions" — the SatoshiLabs-
|
|
283
197
|
* signed network/token metadata a Trezor device uses to render friendly names
|
|
@@ -412,4 +326,4 @@ declare function isTrezorBleServiceUuid(uuid: string): boolean;
|
|
|
412
326
|
declare function isTrezorBleDescriptor(descriptor: TrezorBleDescriptor): boolean;
|
|
413
327
|
declare function resolveTrezorBleConnectId(descriptor: TrezorBleDescriptor): string;
|
|
414
328
|
|
|
415
|
-
export { type
|
|
329
|
+
export { type BuildEthereumDefinitionsForPathParams, type BuildEthereumDefinitionsForSignTxParams, DEFAULT_ETHEREUM_DEFINITIONS_BASE_URL, DEFAULT_SOLANA_TOKEN_DEFINITION_BASE_URL, type FetchEthereumDefinitionsParams, type FetchLike, type FetchSolanaTokenDefinitionParams, type SdkEvent, type SdkEventListener, type SdkLogEvent, TREZOR_BLE_PACKET_SIZE, TREZOR_BLE_SUPPORTED_MODELS, TREZOR_BLE_UUIDS, TREZOR_SAFE_7_MODEL, TrezorAdapter, type TrezorBleDescriptor, type TrezorBleTransport, type TrezorBleTransportFactory, type TrezorConnectedDevice, type TrezorConnectorDevice, buildEthereumDefinitionsForPath, buildEthereumDefinitionsForSignTx, fetchEthereumDefinitions, fetchSolanaTokenDefinition, getSlip44FromPath, isTrezorBleDescriptor, isTrezorBleServiceUuid, isTrezorBleSupportedModel, isTrezorSafe7BleDescriptor, isTrezorSafe7BleName, normalizeTrezorBleUuid, offSdkEvent, onSdkEvent, resolveTrezorBleConnectId };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHardwareWallet, IConnector, TransportType, DeviceInfo, Response, ChainCapability, AllNetworkGetAddressParams, AllNetworkAddressResponse,
|
|
1
|
+
import { IHardwareWallet, IConnector, TransportType, DeviceInfo, Response, ChainCapability, AllNetworkGetAddressParams, AllNetworkAddressResponse, TrezorDeviceSettingsParams, TrezorBrightnessParams, TrezorChangePinParams, UiResponseEvent, ChainForFingerprint, ICommonCallParams, EvmGetAddressParams, EvmAddress, EvmSignTxTrezorParams, EvmSignedTx, EvmSignMsgParams, EvmSignature, EvmSignTypedDataParams, BtcGetAddressParams, BtcAddress, BtcGetPublicKeyParams, BtcPublicKey, BtcSignTxParams, BtcSignedTx, BtcSignPsbtParams, BtcSignedPsbt, BtcSignMsgParams, BtcSignature, SolGetAddressParams, SolAddress, SolSignTxParams, SolSignedTx, SolSignMsgParams, SolSignature, TronGetAddressParams, TronAddress, TronSignTxParams, TronSignedTx, TronSignMsgParams, TronSignature, HardwareEventMap, DeviceEventListener, EvmEthereumDefinitions, ConnectorDevice } from '@onekeyfe/hwk-adapter-core';
|
|
2
2
|
|
|
3
3
|
type TrezorPassphraseCallParams = {
|
|
4
4
|
passphraseState?: string;
|
|
@@ -28,7 +28,10 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
28
28
|
private static _normalizeCallArgs;
|
|
29
29
|
private static _splitCommonParams;
|
|
30
30
|
private static _withAllNetworkRequestCommonParams;
|
|
31
|
+
private static readonly _sensitiveLogKeys;
|
|
32
|
+
private static _normalizeLogKey;
|
|
31
33
|
private static _sanitizeForLog;
|
|
34
|
+
private static _redactForLog;
|
|
32
35
|
private static _errorForLog;
|
|
33
36
|
private _setPassphraseRequestContext;
|
|
34
37
|
private static _trezorFailureMessage;
|
|
@@ -45,7 +48,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
45
48
|
private static _isStaleSessionError;
|
|
46
49
|
private static _errorCode;
|
|
47
50
|
private static _isConnectionUnavailableError;
|
|
48
|
-
private static _isRecoverableProtocolResidueError;
|
|
49
51
|
/**
|
|
50
52
|
* Race a promise against an abort signal. Copied from LedgerAdapter:
|
|
51
53
|
* IConnector.call() can't actually be cancelled at the protocol level, but
|
|
@@ -74,21 +76,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
74
76
|
getSupportedChains(): ChainCapability[];
|
|
75
77
|
allNetworkGetAddress(connectId: string, deviceId: string, params: AllNetworkGetAddressParams): Promise<Response<AllNetworkAddressResponse[]>>;
|
|
76
78
|
getFeatures(connectId: string): Promise<Response<Record<string, unknown>>>;
|
|
77
|
-
/**
|
|
78
|
-
* Device authenticity attestation. Sends a host-generated challenge, has the
|
|
79
|
-
* device sign it with its secure-element key, then verifies the returned
|
|
80
|
-
* certificate chain up to a trusted Trezor root CA. On success returns a
|
|
81
|
-
* `deviceId` that uniquely identifies the physical device, survives wipe, and
|
|
82
|
-
* cannot be forged from a seed. Only trust the result when `verified` is true
|
|
83
|
-
* (and `usedDebugKey` is false in production).
|
|
84
|
-
*
|
|
85
|
-
* Requires a secure-element model (Safe 3 = T2B1/T3B1, Safe 5 = T3T1, T3W1)
|
|
86
|
-
* and an on-device confirmation. Older models (T1B1, T2T1) will fail.
|
|
87
|
-
*
|
|
88
|
-
* `dangerouslyAllowDebugKeys` accepts simulator / development root keys — NEVER
|
|
89
|
-
* enable it in a production accounting flow, it lets an emulator mint any id.
|
|
90
|
-
*/
|
|
91
|
-
verifyDeviceAuthenticity(connectId: string, params?: DeviceAuthenticityParams): Promise<Response<DeviceAuthenticityResult>>;
|
|
92
79
|
deviceSettings(connectId: string, params: TrezorDeviceSettingsParams): Promise<Response<Record<string, unknown>>>;
|
|
93
80
|
setBrightness(connectId: string, params?: TrezorBrightnessParams): Promise<Response<Record<string, unknown>>>;
|
|
94
81
|
changePin(connectId: string, params?: TrezorChangePinParams): Promise<Response<Record<string, unknown>>>;
|
|
@@ -103,14 +90,13 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
103
90
|
*/
|
|
104
91
|
uiResponse(response: UiResponseEvent): void;
|
|
105
92
|
/**
|
|
106
|
-
* Returns
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* be the same value anyway).
|
|
93
|
+
* Returns the Trezor `device_id` from Features — a random 12-byte value the
|
|
94
|
+
* device stores and regenerates on `wipe_device`. It identifies the PHYSICAL
|
|
95
|
+
* DEVICE, not a seed/wallet: it is shared across passphrase wallets and
|
|
96
|
+
* changes after wipe/restore, so it suits device-match checks but must NOT be
|
|
97
|
+
* used as a wallet fingerprint (use `passphraseState` for wallet identity).
|
|
98
|
+
* Unlike Ledger (which hashes a per-chain address), it is chain-global, so
|
|
99
|
+
* `chain` is accepted for API parity but ignored.
|
|
114
100
|
*/
|
|
115
101
|
getChainFingerprint(connectId: string, _deviceId: string, _chain: ChainForFingerprint): Promise<Response<string>>;
|
|
116
102
|
/**
|
|
@@ -206,78 +192,6 @@ declare class TrezorAdapter implements IHardwareWallet {
|
|
|
206
192
|
private _ensureDevicePermission;
|
|
207
193
|
}
|
|
208
194
|
|
|
209
|
-
type CertPubKeys = {
|
|
210
|
-
rootPubKeysOptiga: string[];
|
|
211
|
-
rootPubKeysTropic?: string[];
|
|
212
|
-
};
|
|
213
|
-
type ModelPubKeys = CertPubKeys & {
|
|
214
|
-
debug?: CertPubKeys;
|
|
215
|
-
};
|
|
216
|
-
interface DeviceAuthenticityConfig {
|
|
217
|
-
version: number;
|
|
218
|
-
[model: string]: ModelPubKeys | number | undefined;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** Raw fields taken from a Trezor `AuthenticityProof` message. */
|
|
222
|
-
type AuthenticityProof = {
|
|
223
|
-
optiga_certificates: string[];
|
|
224
|
-
optiga_signature: string;
|
|
225
|
-
tropic_certificates?: string[];
|
|
226
|
-
tropic_signature?: string;
|
|
227
|
-
mcu_certificates?: string[];
|
|
228
|
-
mcu_signature?: string;
|
|
229
|
-
};
|
|
230
|
-
type AuthenticateDeviceResult = {
|
|
231
|
-
/**
|
|
232
|
-
* True only when every layer implemented by this verifier and required by
|
|
233
|
-
* the explicit model policy verified up to a trusted Trezor root CA AND the
|
|
234
|
-
* device signed our challenge:
|
|
235
|
-
* - Optiga (all secure-element models), and
|
|
236
|
-
* - Tropic (T3W1 / Safe 7).
|
|
237
|
-
* This mirrors Trezor Connect's production authenticity policy. The raw MCU
|
|
238
|
-
* fields remain in the returned proof but are not a client-side pass/fail
|
|
239
|
-
* condition.
|
|
240
|
-
* The reward backend must independently verify the same raw proof under its
|
|
241
|
-
* own versioned policy; this client result is only a UX preview.
|
|
242
|
-
*/
|
|
243
|
-
verified: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Stable per-device identifier: the X.509 serial number (OID 2.5.4.5) when
|
|
246
|
-
* present (T3W1+), otherwise the SHA-256 of the device attestation public key.
|
|
247
|
-
* Survives wipe/recovery and cannot be forged from a seed. Do NOT trust when
|
|
248
|
-
* `verified` is false — it is then attacker-controlled.
|
|
249
|
-
*/
|
|
250
|
-
deviceId?: string;
|
|
251
|
-
/** Raw device attestation public key (hex) from the Optiga device certificate. */
|
|
252
|
-
deviceCertPubKey?: string;
|
|
253
|
-
/** X.509 subject serial number (hex), only present on T3W1 and above. */
|
|
254
|
-
serialNumber?: string;
|
|
255
|
-
rootPubKey?: string;
|
|
256
|
-
caPubKey?: string;
|
|
257
|
-
/**
|
|
258
|
-
* True when the chain matched a DEBUG/staging root key (simulator / dev
|
|
259
|
-
* device). A production accounting flow must reject verified results that
|
|
260
|
-
* have `usedDebugKey === true`.
|
|
261
|
-
*/
|
|
262
|
-
usedDebugKey?: boolean;
|
|
263
|
-
/** Failure reason when `verified` is false. */
|
|
264
|
-
error?: string;
|
|
265
|
-
};
|
|
266
|
-
declare const getRequiredDeviceAuthenticityLayers: (deviceModel: string) => readonly ('optiga' | 'tropic')[];
|
|
267
|
-
/**
|
|
268
|
-
* Verify a Trezor `AuthenticityProof` against a challenge and derive a stable
|
|
269
|
-
* per-device id. `challenge` must be the exact random bytes sent in the
|
|
270
|
-
* `AuthenticateDevice` request. Never throws — malformed input from a malicious
|
|
271
|
-
* device is folded into `{ verified: false }`.
|
|
272
|
-
*/
|
|
273
|
-
declare const authenticateDeviceFromProof: ({ proof, challenge, deviceModel, config, allowDebugKeys, }: {
|
|
274
|
-
proof: AuthenticityProof;
|
|
275
|
-
challenge: Buffer;
|
|
276
|
-
deviceModel: string;
|
|
277
|
-
config?: DeviceAuthenticityConfig | undefined;
|
|
278
|
-
allowDebugKeys?: boolean | undefined;
|
|
279
|
-
}) => AuthenticateDeviceResult;
|
|
280
|
-
|
|
281
195
|
/**
|
|
282
196
|
* Opt-in helpers for fetching Trezor Ethereum "definitions" — the SatoshiLabs-
|
|
283
197
|
* signed network/token metadata a Trezor device uses to render friendly names
|
|
@@ -412,4 +326,4 @@ declare function isTrezorBleServiceUuid(uuid: string): boolean;
|
|
|
412
326
|
declare function isTrezorBleDescriptor(descriptor: TrezorBleDescriptor): boolean;
|
|
413
327
|
declare function resolveTrezorBleConnectId(descriptor: TrezorBleDescriptor): string;
|
|
414
328
|
|
|
415
|
-
export { type
|
|
329
|
+
export { type BuildEthereumDefinitionsForPathParams, type BuildEthereumDefinitionsForSignTxParams, DEFAULT_ETHEREUM_DEFINITIONS_BASE_URL, DEFAULT_SOLANA_TOKEN_DEFINITION_BASE_URL, type FetchEthereumDefinitionsParams, type FetchLike, type FetchSolanaTokenDefinitionParams, type SdkEvent, type SdkEventListener, type SdkLogEvent, TREZOR_BLE_PACKET_SIZE, TREZOR_BLE_SUPPORTED_MODELS, TREZOR_BLE_UUIDS, TREZOR_SAFE_7_MODEL, TrezorAdapter, type TrezorBleDescriptor, type TrezorBleTransport, type TrezorBleTransportFactory, type TrezorConnectedDevice, type TrezorConnectorDevice, buildEthereumDefinitionsForPath, buildEthereumDefinitionsForSignTx, fetchEthereumDefinitions, fetchSolanaTokenDefinition, getSlip44FromPath, isTrezorBleDescriptor, isTrezorBleServiceUuid, isTrezorBleSupportedModel, isTrezorSafe7BleDescriptor, isTrezorSafe7BleName, normalizeTrezorBleUuid, offSdkEvent, onSdkEvent, resolveTrezorBleConnectId };
|