diff --git a/lib/structs.js b/lib/structs.js index 71ee642..6ce66bb 100644 --- a/lib/structs.js +++ b/lib/structs.js @@ -992,6 +992,22 @@ var ServicesBitfield = exports.ServicesBitfield = objectAssign(Bitfield(64), { * @constant {number} */ NODE_NETWORK: 63, + /** + * Bit index indicating web/mobile client with limited network + * capabilities (proposal feature). + * @memberof module:bitmessage/structs.ServicesBitfield + * @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification} + * @constant {number} + */ + NODE_MOBILE: 62, + /** + * Bit index indicating node which can work as a WebSocket gateway for + * web/mobile clients (proposal feature). + * @memberof module:bitmessage/structs.ServicesBitfield + * @see {@link https://bitmessage.org/wiki/Mobile_Protocol_specification} + * @constant {number} + */ + NODE_GATEWAY: 61, }); /** @@ -1035,6 +1051,14 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), { * @memberof module:bitmessage/structs.PubkeyBitfield */ + /** + * Bit index. + * If set, the receiving node does send acknowledgements (rather than + * dropping them). + * @memberof module:bitmessage/structs.PubkeyBitfield + * @constant {number} + */ + DOES_ACK: 31, /** * Bit index. * If set, the receiving node expects that the RIPEMD hash encoded in @@ -1044,12 +1068,4 @@ exports.PubkeyBitfield = objectAssign(Bitfield(32), { * @constant {number} */ INCLUDE_DESTINATION: 30, - /** - * Bit index. - * If set, the receiving node does send acknowledgements (rather than - * dropping them). - * @memberof module:bitmessage/structs.PubkeyBitfield - * @constant {number} - */ - DOES_ACK: 31, });