Commit Graph

58 Commits

Author SHA1 Message Date
fdd941083d
Update links to the Spec 2024-03-08 02:20:24 +02:00
305bce9397
Replace [new ]Buffer() with Buffer.alloc() or Buffer.from() in code 2024-03-08 02:20:24 +02:00
Kagami Hiiragi
da0eb28eb6 Expose "expires" field for objects 2015-03-07 21:05:39 +03:00
Kagami Hiiragi
f29f32b3aa Add option to check stream in object.validate 2015-03-07 00:35:30 +03:00
Kagami Hiiragi
56083e4751 Allow to pass services as buffer to net_addr 2015-02-28 22:25:28 +03:00
Kagami Hiiragi
d68e5adf0b Filter out private IPs in addr messages
Fixes #10
2015-02-27 15:54:05 +03:00
Kagami Hiiragi
849e76ca23 Bitfield.toString 2015-02-23 20:55:30 +03:00
Kagami Hiiragi
49e4aa4158 Add object.validate API 2015-02-16 19:47:19 +03:00
Kagami Hiiragi
c2cd98fe7f Add NODE_GATEWAY/NODE_MOBILE unofficial bits 2015-02-14 18:22:57 +03:00
Kagami Hiiragi
fd70fd6433 docs: usage examples 2015-02-12 13:36:44 +03:00
Kagami Hiiragi
3f0b881a58 Use Buffer type for vector in error encode/decode 2015-02-11 17:53:49 +03:00
Kagami Hiiragi
3ca97f294c Fix double Buffer.concat
Though I'm not sure is it gonna be faster.
2015-02-11 16:52:40 +03:00
Kagami Hiiragi
782b7e7d27 docs: structs 2015-02-11 15:18:38 +03:00
Kagami Hiiragi
5c981309df docs: use optional instead of nullable 2015-02-10 21:23:20 +03:00
Kagami Hiiragi
74bbfda83e Document bitfields 2015-02-10 19:16:07 +03:00
Kagami Hiiragi
68c7966bef Document address module 2015-02-10 16:40:57 +03:00
Kagami Hiiragi
142cb76e6b Almost finished TCP transport 2015-02-09 17:38:10 +03:00
Kagami Hiiragi
f8327baf73 Check max message payload length
Relates: Bitmessage/PyBitmessage#767
2015-02-07 14:14:53 +03:00
Kagami Hiiragi
e15bdecfcb Decode messages in stream mode 2015-02-06 20:44:27 +03:00
Kagami Hiiragi
9ed1c87df8 More strict inet_pton 2015-02-06 15:57:22 +03:00
Kagami Hiiragi
d2a6528fb3 Empty payload by default with message.encode 2015-02-01 18:15:34 +03:00
Kagami Hiiragi
9f368d32fb Improve documentation 2015-01-31 14:51:35 +03:00
Kagami Hiiragi
2615c25425 Do a POW for objects 2015-01-31 00:16:56 +03:00
Kagami Hiiragi
56679a0f8f Check objects POW 2015-01-30 20:13:09 +03:00
Kagami Hiiragi
e38c14239e Check object message payload length
See also: Bitmessage/PyBitmessage#767
2015-01-30 17:19:38 +03:00
Kagami Hiiragi
8e892581f5 Improve comments; fixes 2015-01-29 01:13:41 +03:00
Kagami Hiiragi
70f7054bbf messages.getCommand 2015-01-27 16:35:49 +03:00
Kagami Hiiragi
a25bf41036 encodePayloadAsync/decodePayloadAsync for objects 2015-01-27 16:08:18 +03:00
Kagami Hiiragi
874acfac45 Fix message.encode API 2015-01-26 19:34:29 +03:00
Kagami Hiiragi
d50dcac4a2 Huge commit with partial objects.getpubkey impl 2015-01-22 03:14:21 +03:00
Kagami Hiiragi
26da0b1d2f Use MSB 0 in bitfields 2015-01-21 21:05:00 +03:00
Kagami Hiiragi
dc868634ac Improve Address API 2015-01-19 15:08:56 +03:00
Kagami Hiiragi
232e06caf2 OOPify bitfields 2015-01-19 02:06:28 +03:00
Kagami Hiiragi
dd7d4315c2 Some bitfields refactoring 2015-01-19 01:09:17 +03:00
Kagami Hiiragi
5d812eba47 Use MSB 0 for pubkey behavior bitfield 2015-01-19 00:50:57 +03:00
Kagami Hiiragi
09f7be7062 Implement getpubkey 2015-01-18 14:37:09 +03:00
Kagami Hiiragi
9208e95e20 Remove useless messageEncodings struct 2015-01-18 13:20:32 +03:00
Kagami Hiiragi
52dce062c4 Fixes 2015-01-16 01:43:15 +03:00
Kagami Hiiragi
73d2ad393a Implement inv_vect, inv 2015-01-16 00:00:27 +03:00
Kagami Hiiragi
808fc5eaf1 Implement messages.version 2015-01-15 20:27:52 +03:00
Kagami Hiiragi
3d5968bcc1 Improve usability of bitfield.encode 2015-01-15 17:46:58 +03:00
Kagami Hiiragi
5bb1257adf Newer eccrypto 2015-01-14 02:36:07 +03:00
Kagami Hiiragi
001f5b16df User agent 2015-01-11 20:24:39 +03:00
Kagami Hiiragi
887a757f87 Add fail tests 2015-01-11 18:27:14 +03:00
Kagami Hiiragi
4b2bb0ba51 Encrypted encode/decode 2015-01-11 16:59:43 +03:00
Kagami Hiiragi
9407e27529 Check a POW 2015-01-08 16:47:29 +03:00
Kagami Hiiragi
8ef3168af1 Make code more consistent 2015-01-08 05:00:19 +03:00
Kagami Hiiragi
8c2f180037 Fix docstrings 2015-01-07 05:24:30 +03:00
Kagami Hiiragi
85798fa619 Make message.encode more consistent 2015-01-07 05:18:41 +03:00
Kagami Hiiragi
2dc2f48a47 Fixes 2015-01-06 14:08:39 +03:00