Commit Graph

103 Commits

Author SHA1 Message Date
7a3a366219
Add a test for verification of the sha256 signatures 2024-05-09 17:01:13 +03:00
67712c69fa
Fix some semicolon typos in test 2024-03-08 02:20:25 +02:00
7b38bbc5ad
Remove excessive done() in test 2024-03-08 02:20:25 +02:00
095bc95660
Fix the test case for encrypted 2024-03-08 02:20:25 +02:00
5503818676
Replace [new ]Buffer() by Buffer.alloc() and Buffer.from() in tests 2024-03-08 02:20:24 +02:00
Kagami Hiiragi
651ce9b981 Fix POW test 2015-07-13 22:11:18 +03:00
Kagami Hiiragi
a97749c688 Fix pubkey test
It may fail sometimes on travis because of VM freezes.
2015-05-29 15:45:23 +03: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
956d58ce2f Rename option inventory -> vectors 2015-03-05 23:31:11 +03:00
Kagami Hiiragi
542d31d387 Support bitmessage: scheme in Address.decode 2015-03-01 20:37:22 +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
84ad9eb2c2 Extract transports to bitmessage-transports
Fixes #13
2015-02-25 13:28:58 +03:00
Kagami Hiiragi
5e85ae4ab7 Functional tests stub 2015-02-02 18:30:05 +03:00
Kagami Hiiragi
edf254c6e5 Use karma-env-preprocessor 2015-02-02 17:34:00 +03:00
Kagami Hiiragi
d2a6528fb3 Empty payload by default with message.encode 2015-02-01 18:15:34 +03:00
Kagami Hiiragi
25243531e9 Fix version nonce handling 2015-02-01 17:09:46 +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
25d5b70bae Fix target calculation
Relates: Bitmessage/PyBitmessage#758
2015-01-30 18:15:20 +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
4ef94e91f7 Add tests for msg/broadcast with address v2 2015-01-30 15:53:03 +03:00
Kagami Hiiragi
a42ec4b8f7 Address#clone 2015-01-29 21:47:01 +03:00
Kagami Hiiragi
ea9e8e60ef objects.broadcast 2015-01-29 21:19:37 +03:00
Kagami Hiiragi
34868ff014 objects module improvements/refactoring 2015-01-29 16:23:18 +03:00
Kagami Hiiragi
2416094686 Fix pubkey.decode API 2015-01-29 01:21:48 +03:00
Kagami Hiiragi
2e4c91f49b objects.msg 2015-01-28 23:37:20 +03:00
Kagami Hiiragi
4610701a3e Fix Address#ripe/Address#getShortRipe API 2015-01-28 17:24:31 +03:00
Kagami Hiiragi
ceceaee721 objects.getType 2015-01-28 16:31:18 +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
514265b7cd Add encodePayload/decodePayload to messages module 2015-01-26 20:03:43 +03:00
Kagami Hiiragi
874acfac45 Fix message.encode API 2015-01-26 19:34:29 +03:00
Kagami Hiiragi
aa691b4d1f Improve user agent API 2015-01-24 15:13:21 +03:00
Kagami Hiiragi
4a0e4f3709 Fix ttl test 2015-01-23 21:33:18 +03:00
Kagami Hiiragi
643edbbdc6 s/ripelen/ripeLength/ option to be consistent 2015-01-23 18:29:39 +03:00
Kagami Hiiragi
d50dcac4a2 Huge commit with partial objects.getpubkey impl 2015-01-22 03:14:21 +03:00
Kagami Hiiragi
33432c6735 Address.isAddress 2015-01-22 02:39:51 +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
0cd386d65c Provide ECMA5 setters for Address 2015-01-18 19:38:23 +03:00
Kagami Hiiragi
76cf227513 Add getpubkey v3 test 2015-01-18 18:27:09 +03:00
Kagami Hiiragi
bc3fef1aea Address.fromPassphrase 2015-01-18 15:34:02 +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
3e9f3a62a6 API fixes 2015-01-16 21:36:57 +03:00
Kagami Hiiragi
8fa539c61b Add SHA-1 (used for signing) 2015-01-16 18:35:40 +03:00