@keepkey/device-protocol 7.13.2 → 7.13.4
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/lib/proto.json +8 -2
- package/lib/types_pb.d.ts +8 -0
- package/lib/types_pb.js +53 -3
- package/package.json +1 -1
package/lib/proto.json
CHANGED
@@ -48,7 +48,8 @@
|
|
48
48
|
"PAYTOMULTISIG": 2,
|
49
49
|
"PAYTOOPRETURN": 3,
|
50
50
|
"PAYTOWITNESS": 4,
|
51
|
-
"PAYTOP2SHWITNESS": 5
|
51
|
+
"PAYTOP2SHWITNESS": 5,
|
52
|
+
"PAYTOTAPROOT": 6
|
52
53
|
}
|
53
54
|
},
|
54
55
|
"InputScriptType": {
|
@@ -57,7 +58,8 @@
|
|
57
58
|
"SPENDMULTISIG": 1,
|
58
59
|
"EXTERNAL": 2,
|
59
60
|
"SPENDWITNESS": 3,
|
60
|
-
"SPENDP2SHWITNESS": 4
|
61
|
+
"SPENDP2SHWITNESS": 4,
|
62
|
+
"SPENDTAPROOT": 5
|
61
63
|
}
|
62
64
|
},
|
63
65
|
"RequestType": {
|
@@ -275,6 +277,10 @@
|
|
275
277
|
"nanoaddr_prefix": {
|
276
278
|
"type": "string",
|
277
279
|
"id": 27
|
280
|
+
},
|
281
|
+
"taproot": {
|
282
|
+
"type": "bool",
|
283
|
+
"id": 28
|
278
284
|
}
|
279
285
|
}
|
280
286
|
},
|
package/lib/types_pb.d.ts
CHANGED
@@ -193,6 +193,11 @@ export class CoinType extends jspb.Message {
|
|
193
193
|
getNanoaddrPrefix(): string | undefined;
|
194
194
|
setNanoaddrPrefix(value: string): void;
|
195
195
|
|
196
|
+
hasTaproot(): boolean;
|
197
|
+
clearTaproot(): void;
|
198
|
+
getTaproot(): boolean | undefined;
|
199
|
+
setTaproot(value: boolean): void;
|
200
|
+
|
196
201
|
serializeBinary(): Uint8Array;
|
197
202
|
toObject(includeInstance?: boolean): CoinType.AsObject;
|
198
203
|
static toObject(includeInstance: boolean, msg: CoinType): CoinType.AsObject;
|
@@ -225,6 +230,7 @@ export namespace CoinType {
|
|
225
230
|
xpubMagicSegwitP2sh?: number,
|
226
231
|
xpubMagicSegwitNative?: number,
|
227
232
|
nanoaddrPrefix?: string,
|
233
|
+
taproot?: boolean,
|
228
234
|
}
|
229
235
|
}
|
230
236
|
|
@@ -759,6 +765,7 @@ export interface OutputScriptTypeMap {
|
|
759
765
|
PAYTOOPRETURN: 3;
|
760
766
|
PAYTOWITNESS: 4;
|
761
767
|
PAYTOP2SHWITNESS: 5;
|
768
|
+
PAYTOTAPROOT: 6;
|
762
769
|
}
|
763
770
|
|
764
771
|
export const OutputScriptType: OutputScriptTypeMap;
|
@@ -769,6 +776,7 @@ export interface InputScriptTypeMap {
|
|
769
776
|
EXTERNAL: 2;
|
770
777
|
SPENDWITNESS: 3;
|
771
778
|
SPENDP2SHWITNESS: 4;
|
779
|
+
SPENDTAPROOT: 5;
|
772
780
|
}
|
773
781
|
|
774
782
|
export const InputScriptType: InputScriptTypeMap;
|
package/lib/types_pb.js
CHANGED
@@ -1034,7 +1034,8 @@ proto.CoinType.toObject = function(includeInstance, msg) {
|
|
1034
1034
|
decred: (f = jspb.Message.getBooleanField(msg, 23)) == null ? undefined : f,
|
1035
1035
|
xpubMagicSegwitP2sh: (f = jspb.Message.getField(msg, 25)) == null ? undefined : f,
|
1036
1036
|
xpubMagicSegwitNative: (f = jspb.Message.getField(msg, 26)) == null ? undefined : f,
|
1037
|
-
nanoaddrPrefix: (f = jspb.Message.getField(msg, 27)) == null ? undefined : f
|
1037
|
+
nanoaddrPrefix: (f = jspb.Message.getField(msg, 27)) == null ? undefined : f,
|
1038
|
+
taproot: (f = jspb.Message.getBooleanField(msg, 28)) == null ? undefined : f
|
1038
1039
|
};
|
1039
1040
|
|
1040
1041
|
if (includeInstance) {
|
@@ -1151,6 +1152,10 @@ proto.CoinType.deserializeBinaryFromReader = function(msg, reader) {
|
|
1151
1152
|
var value = /** @type {string} */ (reader.readString());
|
1152
1153
|
msg.setNanoaddrPrefix(value);
|
1153
1154
|
break;
|
1155
|
+
case 28:
|
1156
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1157
|
+
msg.setTaproot(value);
|
1158
|
+
break;
|
1154
1159
|
default:
|
1155
1160
|
reader.skipField();
|
1156
1161
|
break;
|
@@ -1320,6 +1325,13 @@ proto.CoinType.serializeBinaryToWriter = function(message, writer) {
|
|
1320
1325
|
f
|
1321
1326
|
);
|
1322
1327
|
}
|
1328
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 28));
|
1329
|
+
if (f != null) {
|
1330
|
+
writer.writeBool(
|
1331
|
+
28,
|
1332
|
+
f
|
1333
|
+
);
|
1334
|
+
}
|
1323
1335
|
};
|
1324
1336
|
|
1325
1337
|
|
@@ -2067,6 +2079,42 @@ proto.CoinType.prototype.hasNanoaddrPrefix = function() {
|
|
2067
2079
|
};
|
2068
2080
|
|
2069
2081
|
|
2082
|
+
/**
|
2083
|
+
* optional bool taproot = 28;
|
2084
|
+
* @return {boolean}
|
2085
|
+
*/
|
2086
|
+
proto.CoinType.prototype.getTaproot = function() {
|
2087
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false));
|
2088
|
+
};
|
2089
|
+
|
2090
|
+
|
2091
|
+
/**
|
2092
|
+
* @param {boolean} value
|
2093
|
+
* @return {!proto.CoinType} returns this
|
2094
|
+
*/
|
2095
|
+
proto.CoinType.prototype.setTaproot = function(value) {
|
2096
|
+
return jspb.Message.setField(this, 28, value);
|
2097
|
+
};
|
2098
|
+
|
2099
|
+
|
2100
|
+
/**
|
2101
|
+
* Clears the field making it undefined.
|
2102
|
+
* @return {!proto.CoinType} returns this
|
2103
|
+
*/
|
2104
|
+
proto.CoinType.prototype.clearTaproot = function() {
|
2105
|
+
return jspb.Message.setField(this, 28, undefined);
|
2106
|
+
};
|
2107
|
+
|
2108
|
+
|
2109
|
+
/**
|
2110
|
+
* Returns whether this field is set.
|
2111
|
+
* @return {boolean}
|
2112
|
+
*/
|
2113
|
+
proto.CoinType.prototype.hasTaproot = function() {
|
2114
|
+
return jspb.Message.getField(this, 28) != null;
|
2115
|
+
};
|
2116
|
+
|
2117
|
+
|
2070
2118
|
|
2071
2119
|
/**
|
2072
2120
|
* List of repeated fields within this message type.
|
@@ -5940,7 +5988,8 @@ proto.OutputScriptType = {
|
|
5940
5988
|
PAYTOMULTISIG: 2,
|
5941
5989
|
PAYTOOPRETURN: 3,
|
5942
5990
|
PAYTOWITNESS: 4,
|
5943
|
-
PAYTOP2SHWITNESS: 5
|
5991
|
+
PAYTOP2SHWITNESS: 5,
|
5992
|
+
PAYTOTAPROOT: 6
|
5944
5993
|
};
|
5945
5994
|
|
5946
5995
|
/**
|
@@ -5951,7 +6000,8 @@ proto.InputScriptType = {
|
|
5951
6000
|
SPENDMULTISIG: 1,
|
5952
6001
|
EXTERNAL: 2,
|
5953
6002
|
SPENDWITNESS: 3,
|
5954
|
-
SPENDP2SHWITNESS: 4
|
6003
|
+
SPENDP2SHWITNESS: 4,
|
6004
|
+
SPENDTAPROOT: 5
|
5955
6005
|
};
|
5956
6006
|
|
5957
6007
|
/**
|