To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see .
@@ -205,7 +205,7 @@ tcp.on("established", function() {
diff --git a/docs/index.js.html b/docs/index.js.html
index 501a518..e97f657 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -71,7 +71,7 @@ exports.UserAgent = require("./user-agent");
diff --git a/docs/messages.js.html b/docs/messages.js.html
index 8ec914d..28198a3 100644
--- a/docs/messages.js.html
+++ b/docs/messages.js.html
@@ -111,6 +111,10 @@ var randomNonce = bmcrypto.randomBytes(8);
var version = exports.version = {
/**
* @typedef {Object} DecodeResult
+ * @property {number} version - Identifies protocol version being used
+ * by the node. Should equal 3. Nodes should disconnect if the remote
+ * node's version is lower but continue with the connection if it is
+ * higher.
* @property {Object} services -
* [Service]{@link module:bitmessage/structs.ServicesBitfield}
* features to be enabled for this connection
@@ -594,7 +598,7 @@ var error = exports.error = {
diff --git a/docs/module-bitmessage.html b/docs/module-bitmessage.html
index 55584b8..0beec4a 100644
--- a/docs/module-bitmessage.html
+++ b/docs/module-bitmessage.html
@@ -660,7 +660,7 @@
diff --git a/docs/module-bitmessage_address.Address.html b/docs/module-bitmessage_address.Address.html
index 47cb860..a7e8b8d 100644
--- a/docs/module-bitmessage_address.Address.html
+++ b/docs/module-bitmessage_address.Address.html
@@ -2206,7 +2206,7 @@ encrypt/decrypt
diff --git a/docs/module-bitmessage_address.html b/docs/module-bitmessage_address.html
index 689fd4c..1db9b9f 100644
--- a/docs/module-bitmessage_address.html
+++ b/docs/module-bitmessage_address.html
@@ -178,7 +178,7 @@ console.log("Deterministic Bitmessage address:", addr2.encode());
diff --git a/docs/module-bitmessage_crypto.html b/docs/module-bitmessage_crypto.html
index 9450ece..2f00fa0 100644
--- a/docs/module-bitmessage_crypto.html
+++ b/docs/module-bitmessage_crypto.html
@@ -2034,7 +2034,7 @@ and rejects on bad key or signature.
@@ -1245,7 +1245,7 @@ related to the error
diff --git a/docs/module-bitmessage_messages.getdata.html b/docs/module-bitmessage_messages.getdata.html
index c91da55..63a3e3e 100644
--- a/docs/module-bitmessage_messages.getdata.html
+++ b/docs/module-bitmessage_messages.getdata.html
@@ -78,7 +78,7 @@ content of a specific object after filtering known elements.
Identifies protocol version being used
+by the node. Should equal 3. Nodes should disconnect if the remote
+node's version is lower but continue with the connection if it is
+higher.
+
+
+
+
services
@@ -1229,7 +1255,7 @@ to self
diff --git a/docs/module-bitmessage_net_base.BaseTransport.html b/docs/module-bitmessage_net_base.BaseTransport.html
index c85b776..46c60c0 100644
--- a/docs/module-bitmessage_net_base.BaseTransport.html
+++ b/docs/module-bitmessage_net_base.BaseTransport.html
@@ -872,7 +872,7 @@ argument is a string)
diff --git a/docs/module-bitmessage_net_base.html b/docs/module-bitmessage_net_base.html
index cb03759..a1000c0 100644
--- a/docs/module-bitmessage_net_base.html
+++ b/docs/module-bitmessage_net_base.html
@@ -164,7 +164,7 @@ instead in order to connect/accept connections to/from other nodes. N
diff --git a/docs/module-bitmessage_net_tcp.TcpTransport.html b/docs/module-bitmessage_net_tcp.TcpTransport.html
index 5294ac7..9594d5d 100644
--- a/docs/module-bitmessage_net_tcp.TcpTransport.html
+++ b/docs/module-bitmessage_net_tcp.TcpTransport.html
@@ -564,7 +564,7 @@ for
diff --git a/docs/module-bitmessage_net_tcp.html b/docs/module-bitmessage_net_tcp.html
index 5457c14..1c4a188 100644
--- a/docs/module-bitmessage_net_tcp.html
+++ b/docs/module-bitmessage_net_tcp.html
@@ -188,7 +188,7 @@ tcp.on("established", function() {
diff --git a/docs/module-bitmessage_net_ws.WsTransport.html b/docs/module-bitmessage_net_ws.WsTransport.html
index 8ce8227..b0b8257 100644
--- a/docs/module-bitmessage_net_ws.WsTransport.html
+++ b/docs/module-bitmessage_net_ws.WsTransport.html
@@ -542,7 +542,7 @@ Available only for Node platform.
diff --git a/docs/module-bitmessage_net_ws.html b/docs/module-bitmessage_net_ws.html
index 821edea..6fea2aa 100644
--- a/docs/module-bitmessage_net_ws.html
+++ b/docs/module-bitmessage_net_ws.html
@@ -164,7 +164,7 @@ packets. Available for both Node.js and Browser platforms. NOTE
diff --git a/docs/module-bitmessage_objects.broadcast.html b/docs/module-bitmessage_objects.broadcast.html
index 617f45f..0bb4948 100644
--- a/docs/module-bitmessage_objects.broadcast.html
+++ b/docs/module-bitmessage_objects.broadcast.html
@@ -1586,7 +1586,7 @@ unparsed buffer data for other encodings
diff --git a/docs/module-bitmessage_objects.getpubkey.html b/docs/module-bitmessage_objects.getpubkey.html
index 85d8e48..0cc1dd3 100644
--- a/docs/module-bitmessage_objects.getpubkey.html
+++ b/docs/module-bitmessage_objects.getpubkey.html
@@ -1090,7 +1090,7 @@ for address version >= 4
diff --git a/docs/module-bitmessage_objects.html b/docs/module-bitmessage_objects.html
index a598d5b..8b5dc85 100644
--- a/docs/module-bitmessage_objects.html
+++ b/docs/module-bitmessage_objects.html
@@ -419,7 +419,7 @@ then call decode function of the appropriate object handler.
diff --git a/docs/module-bitmessage_objects.msg.html b/docs/module-bitmessage_objects.msg.html
index b1ded3b..ad8c87d 100644
--- a/docs/module-bitmessage_objects.msg.html
+++ b/docs/module-bitmessage_objects.msg.html
@@ -1896,7 +1896,7 @@ unparsed buffer data for other encodings
diff --git a/docs/module-bitmessage_objects.pubkey.html b/docs/module-bitmessage_objects.pubkey.html
index dfdda0b..2d42be4 100644
--- a/docs/module-bitmessage_objects.pubkey.html
+++ b/docs/module-bitmessage_objects.pubkey.html
@@ -1296,7 +1296,7 @@ only for pubkey version >= 3)
diff --git a/docs/module-bitmessage_pow.html b/docs/module-bitmessage_pow.html
index 5caeaea..7c74d94 100644
--- a/docs/module-bitmessage_pow.html
+++ b/docs/module-bitmessage_pow.html
@@ -1095,7 +1095,7 @@ raised to 1000.
diff --git a/docs/module-bitmessage_structs.PubkeyBitfield.html b/docs/module-bitmessage_structs.PubkeyBitfield.html
index f73160e..13801c4 100644
--- a/docs/module-bitmessage_structs.PubkeyBitfield.html
+++ b/docs/module-bitmessage_structs.PubkeyBitfield.html
@@ -804,7 +804,7 @@ bound for them.
diff --git a/docs/module-bitmessage_structs.ServicesBitfield.html b/docs/module-bitmessage_structs.ServicesBitfield.html
index 33d4078..f673095 100644
--- a/docs/module-bitmessage_structs.ServicesBitfield.html
+++ b/docs/module-bitmessage_structs.ServicesBitfield.html
@@ -724,7 +724,7 @@ console.log(services.get(15)); // false
diff --git a/docs/module-bitmessage_structs.encrypted.html b/docs/module-bitmessage_structs.encrypted.html
index 90aa5cf..8bbbb42 100644
--- a/docs/module-bitmessage_structs.encrypted.html
+++ b/docs/module-bitmessage_structs.encrypted.html
@@ -756,7 +756,7 @@ size)
diff --git a/docs/module-bitmessage_structs.html b/docs/module-bitmessage_structs.html
index 730c16c..7170ee2 100644
--- a/docs/module-bitmessage_structs.html
+++ b/docs/module-bitmessage_structs.html
@@ -216,7 +216,7 @@ console.log(decoded4.list); // [1, 2, 3]
diff --git a/docs/module-bitmessage_structs.inv_vect.html b/docs/module-bitmessage_structs.inv_vect.html
index 9167edb..87f737a 100644
--- a/docs/module-bitmessage_structs.inv_vect.html
+++ b/docs/module-bitmessage_structs.inv_vect.html
@@ -289,7 +289,7 @@
diff --git a/docs/module-bitmessage_structs.message.html b/docs/module-bitmessage_structs.message.html
index 6ecee73..cb9e640 100644
--- a/docs/module-bitmessage_structs.message.html
+++ b/docs/module-bitmessage_structs.message.html
@@ -1149,7 +1149,7 @@ processing message
diff --git a/docs/module-bitmessage_structs.net_addr.html b/docs/module-bitmessage_structs.net_addr.html
index 18ac9cf..61e84cc 100644
--- a/docs/module-bitmessage_structs.net_addr.html
+++ b/docs/module-bitmessage_structs.net_addr.html
@@ -933,7 +933,7 @@ provided by the node
diff --git a/docs/module-bitmessage_structs.object.html b/docs/module-bitmessage_structs.object.html
index 5d5969d..258f038 100644
--- a/docs/module-bitmessage_structs.object.html
+++ b/docs/module-bitmessage_structs.object.html
@@ -1834,7 +1834,7 @@ useful if you are going to calculate it later).
diff --git a/docs/module-bitmessage_structs.var_int.html b/docs/module-bitmessage_structs.var_int.html
index ed31ff5..6050f4d 100644
--- a/docs/module-bitmessage_structs.var_int.html
+++ b/docs/module-bitmessage_structs.var_int.html
@@ -615,7 +615,7 @@
diff --git a/docs/module-bitmessage_structs.var_int_list.html b/docs/module-bitmessage_structs.var_int_list.html
index 2adafeb..1b8c6e0 100644
--- a/docs/module-bitmessage_structs.var_int_list.html
+++ b/docs/module-bitmessage_structs.var_int_list.html
@@ -613,7 +613,7 @@
diff --git a/docs/module-bitmessage_structs.var_str.html b/docs/module-bitmessage_structs.var_str.html
index 005dff8..77f955f 100644
--- a/docs/module-bitmessage_structs.var_str.html
+++ b/docs/module-bitmessage_structs.var_str.html
@@ -612,7 +612,7 @@
diff --git a/docs/module-bitmessage_user-agent.html b/docs/module-bitmessage_user-agent.html
index cceae6f..279f639 100644
--- a/docs/module-bitmessage_user-agent.html
+++ b/docs/module-bitmessage_user-agent.html
@@ -907,7 +907,7 @@ format because it's not that important.
diff --git a/docs/module-bitmessage_wif.html b/docs/module-bitmessage_wif.html
index 74f316c..d03f3b8 100644
--- a/docs/module-bitmessage_wif.html
+++ b/docs/module-bitmessage_wif.html
@@ -469,7 +469,7 @@ key).
diff --git a/docs/net_base.js.html b/docs/net_base.js.html
index 967cb86..56c4ba7 100644
--- a/docs/net_base.js.html
+++ b/docs/net_base.js.html
@@ -155,7 +155,7 @@ module.exports = BaseTransport;
diff --git a/docs/net_tcp.js.html b/docs/net_tcp.js.html
index 32741cd..6718f9f 100644
--- a/docs/net_tcp.js.html
+++ b/docs/net_tcp.js.html
@@ -368,7 +368,7 @@ module.exports = TcpTransport;
diff --git a/docs/net_ws.js.html b/docs/net_ws.js.html
index aad07c5..1091df2 100644
--- a/docs/net_ws.js.html
+++ b/docs/net_ws.js.html
@@ -298,7 +298,7 @@ module.exports = WsTransport;
diff --git a/docs/objects.js.html b/docs/objects.js.html
index ef32a87..73cb44b 100644
--- a/docs/objects.js.html
+++ b/docs/objects.js.html
@@ -1176,7 +1176,7 @@ var broadcast = exports.broadcast = {
diff --git a/docs/pow.js.html b/docs/pow.js.html
index 07698bf..4b51915 100644
--- a/docs/pow.js.html
+++ b/docs/pow.js.html
@@ -156,7 +156,7 @@ exports.doAsync = function(opts) {
diff --git a/docs/structs.js.html b/docs/structs.js.html
index 521446d..322de68 100644
--- a/docs/structs.js.html
+++ b/docs/structs.js.html
@@ -1097,7 +1097,7 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), {
diff --git a/docs/user-agent.js.html b/docs/user-agent.js.html
index 8643dbe..5598119 100644
--- a/docs/user-agent.js.html
+++ b/docs/user-agent.js.html
@@ -154,7 +154,7 @@ exports.encodeSelfWith = function(software) {
diff --git a/docs/wif.js.html b/docs/wif.js.html
index 29ab941..1eec40a 100644
--- a/docs/wif.js.html
+++ b/docs/wif.js.html
@@ -87,7 +87,7 @@ exports.encode = function(privateKey) {