@onekeyfe/hd-transport 1.2.0-alpha.57 → 1.2.0-alpha.59
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/__tests__/messages.test.js +9 -11
- package/dist/index.d.ts +1 -221
- package/dist/index.js +4 -9
- package/dist/serialization/protobuf/encode.d.ts.map +1 -1
- package/dist/types/messages.d.ts +0 -165
- package/dist/types/messages.d.ts.map +1 -1
- package/package.json +2 -2
- package/scripts/protobuf-patches/index.js +28 -0
- package/src/serialization/protobuf/encode.ts +5 -1
- package/src/types/messages.ts +0 -217
package/dist/types/messages.d.ts
CHANGED
|
@@ -1052,23 +1052,6 @@ export type ECDHSessionKey = {
|
|
|
1052
1052
|
session_key: string;
|
|
1053
1053
|
public_key?: string;
|
|
1054
1054
|
};
|
|
1055
|
-
export type CosiCommit = {
|
|
1056
|
-
address_n: number[];
|
|
1057
|
-
data?: string;
|
|
1058
|
-
};
|
|
1059
|
-
export type CosiCommitment = {
|
|
1060
|
-
commitment?: string;
|
|
1061
|
-
pubkey?: string;
|
|
1062
|
-
};
|
|
1063
|
-
export type CosiSign = {
|
|
1064
|
-
address_n: number[];
|
|
1065
|
-
data?: string;
|
|
1066
|
-
global_commitment?: string;
|
|
1067
|
-
global_pubkey?: string;
|
|
1068
|
-
};
|
|
1069
|
-
export type CosiSignature = {
|
|
1070
|
-
signature: string;
|
|
1071
|
-
};
|
|
1072
1055
|
export type Path = {
|
|
1073
1056
|
address_n: number[];
|
|
1074
1057
|
};
|
|
@@ -1082,77 +1065,6 @@ export type EcdsaPublicKeys = {
|
|
|
1082
1065
|
hd_nodes: HDNodeType[];
|
|
1083
1066
|
root_fingerprint?: number;
|
|
1084
1067
|
};
|
|
1085
|
-
export declare enum DebugSwipeDirection {
|
|
1086
|
-
UP = 0,
|
|
1087
|
-
DOWN = 1,
|
|
1088
|
-
LEFT = 2,
|
|
1089
|
-
RIGHT = 3
|
|
1090
|
-
}
|
|
1091
|
-
export type DebugLinkDecision = {
|
|
1092
|
-
yes_no?: boolean;
|
|
1093
|
-
swipe?: DebugSwipeDirection;
|
|
1094
|
-
input?: string;
|
|
1095
|
-
x?: number;
|
|
1096
|
-
y?: number;
|
|
1097
|
-
wait?: boolean;
|
|
1098
|
-
hold_ms?: number;
|
|
1099
|
-
};
|
|
1100
|
-
export type DebugLinkLayout = {
|
|
1101
|
-
lines: string[];
|
|
1102
|
-
};
|
|
1103
|
-
export type DebugLinkReseedRandom = {
|
|
1104
|
-
value?: number;
|
|
1105
|
-
};
|
|
1106
|
-
export type DebugLinkRecordScreen = {
|
|
1107
|
-
target_directory?: string;
|
|
1108
|
-
};
|
|
1109
|
-
export type DebugLinkGetState = {
|
|
1110
|
-
wait_word_list?: boolean;
|
|
1111
|
-
wait_word_pos?: boolean;
|
|
1112
|
-
wait_layout?: boolean;
|
|
1113
|
-
};
|
|
1114
|
-
export type DebugLinkState = {
|
|
1115
|
-
layout?: string;
|
|
1116
|
-
pin?: string;
|
|
1117
|
-
matrix?: string;
|
|
1118
|
-
mnemonic_secret?: string;
|
|
1119
|
-
node?: HDNodeType;
|
|
1120
|
-
passphrase_protection?: boolean;
|
|
1121
|
-
reset_word?: string;
|
|
1122
|
-
reset_entropy?: string;
|
|
1123
|
-
recovery_fake_word?: string;
|
|
1124
|
-
recovery_word_pos?: number;
|
|
1125
|
-
reset_word_pos?: number;
|
|
1126
|
-
mnemonic_type?: BackupType;
|
|
1127
|
-
layout_lines: string[];
|
|
1128
|
-
};
|
|
1129
|
-
export type DebugLinkStop = {};
|
|
1130
|
-
export type DebugLinkLog = {
|
|
1131
|
-
level?: number;
|
|
1132
|
-
bucket?: string;
|
|
1133
|
-
text?: string;
|
|
1134
|
-
};
|
|
1135
|
-
export type DebugLinkMemoryRead = {
|
|
1136
|
-
address?: number;
|
|
1137
|
-
length?: number;
|
|
1138
|
-
};
|
|
1139
|
-
export type DebugLinkMemory = {
|
|
1140
|
-
memory?: string;
|
|
1141
|
-
};
|
|
1142
|
-
export type DebugLinkMemoryWrite = {
|
|
1143
|
-
address?: number;
|
|
1144
|
-
memory?: string;
|
|
1145
|
-
flash?: boolean;
|
|
1146
|
-
};
|
|
1147
|
-
export type DebugLinkFlashErase = {
|
|
1148
|
-
sector?: number;
|
|
1149
|
-
};
|
|
1150
|
-
export type DebugLinkEraseSdCard = {
|
|
1151
|
-
format?: boolean;
|
|
1152
|
-
};
|
|
1153
|
-
export type DebugLinkWatchLayout = {
|
|
1154
|
-
watch?: boolean;
|
|
1155
|
-
};
|
|
1156
1068
|
export type DnxGetAddress = {
|
|
1157
1069
|
address_n: number[];
|
|
1158
1070
|
show_display?: boolean;
|
|
@@ -2132,17 +2044,6 @@ export type Entropy = {
|
|
|
2132
2044
|
entropy: string;
|
|
2133
2045
|
};
|
|
2134
2046
|
export type WipeDevice = {};
|
|
2135
|
-
export type LoadDevice = {
|
|
2136
|
-
mnemonics: string[];
|
|
2137
|
-
pin?: string;
|
|
2138
|
-
passphrase_protection?: boolean;
|
|
2139
|
-
language?: string;
|
|
2140
|
-
label?: string;
|
|
2141
|
-
skip_checksum?: boolean;
|
|
2142
|
-
u2f_counter?: number;
|
|
2143
|
-
needs_backup?: boolean;
|
|
2144
|
-
no_backup?: boolean;
|
|
2145
|
-
};
|
|
2146
2047
|
export type ResetDevice = {
|
|
2147
2048
|
display_random?: boolean;
|
|
2148
2049
|
strength?: number;
|
|
@@ -2609,22 +2510,6 @@ export type MoneroLiveRefreshStepAck = {
|
|
|
2609
2510
|
};
|
|
2610
2511
|
export type MoneroLiveRefreshFinalRequest = {};
|
|
2611
2512
|
export type MoneroLiveRefreshFinalAck = {};
|
|
2612
|
-
export type DebugMoneroDiagRequest = {
|
|
2613
|
-
ins?: number;
|
|
2614
|
-
p1?: number;
|
|
2615
|
-
p2?: number;
|
|
2616
|
-
pd: number[];
|
|
2617
|
-
data1?: string;
|
|
2618
|
-
data2?: string;
|
|
2619
|
-
};
|
|
2620
|
-
export type DebugMoneroDiagAck = {
|
|
2621
|
-
ins?: number;
|
|
2622
|
-
p1?: number;
|
|
2623
|
-
p2?: number;
|
|
2624
|
-
pd: number[];
|
|
2625
|
-
data1?: string;
|
|
2626
|
-
data2?: string;
|
|
2627
|
-
};
|
|
2628
2513
|
export type NearGetAddress = {
|
|
2629
2514
|
address_n: number[];
|
|
2630
2515
|
show_display?: boolean;
|
|
@@ -3522,30 +3407,6 @@ export type TronMessageSignature = {
|
|
|
3522
3407
|
address: string;
|
|
3523
3408
|
signature: string;
|
|
3524
3409
|
};
|
|
3525
|
-
export type WebAuthnListResidentCredentials = {};
|
|
3526
|
-
export type WebAuthnAddResidentCredential = {
|
|
3527
|
-
credential_id?: string;
|
|
3528
|
-
};
|
|
3529
|
-
export type WebAuthnRemoveResidentCredential = {
|
|
3530
|
-
index?: number;
|
|
3531
|
-
};
|
|
3532
|
-
export type WebAuthnCredential = {
|
|
3533
|
-
index?: number;
|
|
3534
|
-
id?: string;
|
|
3535
|
-
rp_id?: string;
|
|
3536
|
-
rp_name?: string;
|
|
3537
|
-
user_id?: string;
|
|
3538
|
-
user_name?: string;
|
|
3539
|
-
user_display_name?: string;
|
|
3540
|
-
creation_time?: number;
|
|
3541
|
-
hmac_secret?: boolean;
|
|
3542
|
-
use_sign_count?: boolean;
|
|
3543
|
-
algorithm?: number;
|
|
3544
|
-
curve?: number;
|
|
3545
|
-
};
|
|
3546
|
-
export type WebAuthnCredentials = {
|
|
3547
|
-
credentials: WebAuthnCredential[];
|
|
3548
|
-
};
|
|
3549
3410
|
export type facotry = {};
|
|
3550
3411
|
export declare enum CommandFlags {
|
|
3551
3412
|
Default = 0,
|
|
@@ -4267,27 +4128,9 @@ export type MessageType = {
|
|
|
4267
4128
|
SignedIdentity: SignedIdentity;
|
|
4268
4129
|
GetECDHSessionKey: GetECDHSessionKey;
|
|
4269
4130
|
ECDHSessionKey: ECDHSessionKey;
|
|
4270
|
-
CosiCommit: CosiCommit;
|
|
4271
|
-
CosiCommitment: CosiCommitment;
|
|
4272
|
-
CosiSign: CosiSign;
|
|
4273
|
-
CosiSignature: CosiSignature;
|
|
4274
4131
|
Path: Path;
|
|
4275
4132
|
BatchGetPublickeys: BatchGetPublickeys;
|
|
4276
4133
|
EcdsaPublicKeys: EcdsaPublicKeys;
|
|
4277
|
-
DebugLinkDecision: DebugLinkDecision;
|
|
4278
|
-
DebugLinkLayout: DebugLinkLayout;
|
|
4279
|
-
DebugLinkReseedRandom: DebugLinkReseedRandom;
|
|
4280
|
-
DebugLinkRecordScreen: DebugLinkRecordScreen;
|
|
4281
|
-
DebugLinkGetState: DebugLinkGetState;
|
|
4282
|
-
DebugLinkState: DebugLinkState;
|
|
4283
|
-
DebugLinkStop: DebugLinkStop;
|
|
4284
|
-
DebugLinkLog: DebugLinkLog;
|
|
4285
|
-
DebugLinkMemoryRead: DebugLinkMemoryRead;
|
|
4286
|
-
DebugLinkMemory: DebugLinkMemory;
|
|
4287
|
-
DebugLinkMemoryWrite: DebugLinkMemoryWrite;
|
|
4288
|
-
DebugLinkFlashErase: DebugLinkFlashErase;
|
|
4289
|
-
DebugLinkEraseSdCard: DebugLinkEraseSdCard;
|
|
4290
|
-
DebugLinkWatchLayout: DebugLinkWatchLayout;
|
|
4291
4134
|
DnxGetAddress: DnxGetAddress;
|
|
4292
4135
|
DnxAddress: DnxAddress;
|
|
4293
4136
|
DnxSignTx: DnxSignTx;
|
|
@@ -4425,7 +4268,6 @@ export type MessageType = {
|
|
|
4425
4268
|
GetEntropy: GetEntropy;
|
|
4426
4269
|
Entropy: Entropy;
|
|
4427
4270
|
WipeDevice: WipeDevice;
|
|
4428
|
-
LoadDevice: LoadDevice;
|
|
4429
4271
|
ResetDevice: ResetDevice;
|
|
4430
4272
|
BackupDevice: BackupDevice;
|
|
4431
4273
|
EntropyRequest: EntropyRequest;
|
|
@@ -4533,8 +4375,6 @@ export type MessageType = {
|
|
|
4533
4375
|
MoneroLiveRefreshStepAck: MoneroLiveRefreshStepAck;
|
|
4534
4376
|
MoneroLiveRefreshFinalRequest: MoneroLiveRefreshFinalRequest;
|
|
4535
4377
|
MoneroLiveRefreshFinalAck: MoneroLiveRefreshFinalAck;
|
|
4536
|
-
DebugMoneroDiagRequest: DebugMoneroDiagRequest;
|
|
4537
|
-
DebugMoneroDiagAck: DebugMoneroDiagAck;
|
|
4538
4378
|
NearGetAddress: NearGetAddress;
|
|
4539
4379
|
NearAddress: NearAddress;
|
|
4540
4380
|
NearSignTx: NearSignTx;
|
|
@@ -4689,11 +4529,6 @@ export type MessageType = {
|
|
|
4689
4529
|
TronSignedTx: TronSignedTx;
|
|
4690
4530
|
TronSignMessage: TronSignMessage;
|
|
4691
4531
|
TronMessageSignature: TronMessageSignature;
|
|
4692
|
-
WebAuthnListResidentCredentials: WebAuthnListResidentCredentials;
|
|
4693
|
-
WebAuthnAddResidentCredential: WebAuthnAddResidentCredential;
|
|
4694
|
-
WebAuthnRemoveResidentCredential: WebAuthnRemoveResidentCredential;
|
|
4695
|
-
WebAuthnCredential: WebAuthnCredential;
|
|
4696
|
-
WebAuthnCredentials: WebAuthnCredentials;
|
|
4697
4532
|
facotry: facotry;
|
|
4698
4533
|
experimental_message: experimental_message;
|
|
4699
4534
|
experimental_field: experimental_field;
|