@@ -9740,6 +9740,8 @@ <h3>Derive VM</h3>
97409740 * @interface IPublicKeyResponse
97419741 * @property {Uint8Array|null} [public_key] PublicKeyResponse public_key
97429742 * @property {Uint8Array|null} [signature] PublicKeyResponse signature
9743+ * @property {number|Long|null} [timestamp] PublicKeyResponse timestamp
9744+ * @property {Uint8Array|null} [signature_v1] PublicKeyResponse signature_v1
97439745 */
97449746 /**
97459747 * Constructs a new PublicKeyResponse.
@@ -9769,6 +9771,20 @@ <h3>Derive VM</h3>
97699771 * @instance
97709772 */
97719773 PublicKeyResponse.prototype.signature = $util.newBuffer([]);
9774+ /**
9775+ * PublicKeyResponse timestamp.
9776+ * @member {number|Long} timestamp
9777+ * @memberof vmm.PublicKeyResponse
9778+ * @instance
9779+ */
9780+ PublicKeyResponse.prototype.timestamp = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
9781+ /**
9782+ * PublicKeyResponse signature_v1.
9783+ * @member {Uint8Array} signature_v1
9784+ * @memberof vmm.PublicKeyResponse
9785+ * @instance
9786+ */
9787+ PublicKeyResponse.prototype.signature_v1 = $util.newBuffer([]);
97729788 /**
97739789 * Creates a new PublicKeyResponse instance using the specified properties.
97749790 * @function create
@@ -9796,6 +9812,10 @@ <h3>Derive VM</h3>
97969812 writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.public_key);
97979813 if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
97989814 writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.signature);
9815+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
9816+ writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.timestamp);
9817+ if (message.signature_v1 != null && Object.hasOwnProperty.call(message, "signature_v1"))
9818+ writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.signature_v1);
97999819 return writer;
98009820 };
98019821 /**
@@ -9838,6 +9858,14 @@ <h3>Derive VM</h3>
98389858 message.signature = reader.bytes();
98399859 break;
98409860 }
9861+ case 3: {
9862+ message.timestamp = reader.uint64();
9863+ break;
9864+ }
9865+ case 4: {
9866+ message.signature_v1 = reader.bytes();
9867+ break;
9868+ }
98419869 default:
98429870 reader.skipType(tag & 7);
98439871 break;
@@ -9877,6 +9905,12 @@ <h3>Derive VM</h3>
98779905 if (message.signature != null && message.hasOwnProperty("signature"))
98789906 if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
98799907 return "signature: buffer expected";
9908+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
9909+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
9910+ return "timestamp: integer|Long expected";
9911+ if (message.signature_v1 != null && message.hasOwnProperty("signature_v1"))
9912+ if (!(message.signature_v1 && typeof message.signature_v1.length === "number" || $util.isString(message.signature_v1)))
9913+ return "signature_v1: buffer expected";
98809914 return null;
98819915 };
98829916 /**
@@ -9901,6 +9935,20 @@ <h3>Derive VM</h3>
99019935 $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
99029936 else if (object.signature.length >= 0)
99039937 message.signature = object.signature;
9938+ if (object.timestamp != null)
9939+ if ($util.Long)
9940+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
9941+ else if (typeof object.timestamp === "string")
9942+ message.timestamp = parseInt(object.timestamp, 10);
9943+ else if (typeof object.timestamp === "number")
9944+ message.timestamp = object.timestamp;
9945+ else if (typeof object.timestamp === "object")
9946+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
9947+ if (object.signature_v1 != null)
9948+ if (typeof object.signature_v1 === "string")
9949+ $util.base64.decode(object.signature_v1, message.signature_v1 = $util.newBuffer($util.base64.length(object.signature_v1)), 0);
9950+ else if (object.signature_v1.length >= 0)
9951+ message.signature_v1 = object.signature_v1;
99049952 return message;
99059953 };
99069954 /**
@@ -9931,11 +9979,31 @@ <h3>Derive VM</h3>
99319979 if (options.bytes !== Array)
99329980 object.signature = $util.newBuffer(object.signature);
99339981 }
9982+ if ($util.Long) {
9983+ var long = new $util.Long(0, 0, true);
9984+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
9985+ }
9986+ else
9987+ object.timestamp = options.longs === String ? "0" : 0;
9988+ if (options.bytes === String)
9989+ object.signature_v1 = "";
9990+ else {
9991+ object.signature_v1 = [];
9992+ if (options.bytes !== Array)
9993+ object.signature_v1 = $util.newBuffer(object.signature_v1);
9994+ }
99349995 }
99359996 if (message.public_key != null && message.hasOwnProperty("public_key"))
99369997 object.public_key = options.bytes === String ? $util.base64.encode(message.public_key, 0, message.public_key.length) : options.bytes === Array ? Array.prototype.slice.call(message.public_key) : message.public_key;
99379998 if (message.signature != null && message.hasOwnProperty("signature"))
99389999 object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature;
10000+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
10001+ if (typeof message.timestamp === "number")
10002+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
10003+ else
10004+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
10005+ if (message.signature_v1 != null && message.hasOwnProperty("signature_v1"))
10006+ object.signature_v1 = options.bytes === String ? $util.base64.encode(message.signature_v1, 0, message.signature_v1.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_v1) : message.signature_v1;
993910007 return object;
994010008 };
994110009 /**
0 commit comments