455 Commits

Author SHA1 Message Date
vyzo
4eb6b7cada
Merge pull request #97 from libp2p/feat/signing
Implement message signing
2018-10-14 02:42:14 +03:00
vyzo
4dc796359e try to extract the key in order to decide whether to attach the key 2018-10-14 02:22:20 +03:00
vyzo
bd15183543 use the ID corresponding to signKey for published messages 2018-10-14 02:22:20 +03:00
vyzo
b353ddca06 more idiomatic message copying for signature purposes 2018-10-14 02:22:20 +03:00
vyzo
3788f504a5 strict mode for message signing 2018-10-14 02:22:20 +03:00
vyzo
9fa8f64fd3 prefix signed data with libp2p-pubsub: 2018-10-14 02:22:20 +03:00
vyzo
777c68fe0e reify key extraction logic, with more context in error messages 2018-10-14 02:22:20 +03:00
vyzo
4addc898c1 test floodsub with message signing 2018-10-14 02:22:20 +03:00
vyzo
cd32e1772e use MatchesPublicKey, don't rewrite it. 2018-10-14 02:22:20 +03:00
vyzo
1ef82b2cee test message signing 2018-10-14 02:22:20 +03:00
vyzo
60a06ce961 implement signMessage and verifyMessageSignature 2018-10-14 02:22:20 +03:00
vyzo
9d250aef37 option to enable message signing 2018-10-14 02:22:20 +03:00
vyzo
a6c349b6f0 sign messages when a signing key is present 2018-10-14 02:22:20 +03:00
vyzo
7c1012c247 optimize fast path for single topic validator
so that we don't do the goroutine dance for just a single validator, which ought to
be the most common case.
2018-10-14 02:22:20 +03:00
vyzo
7c508b4fba implement validateSignature 2018-10-14 02:22:20 +03:00
vyzo
64aab3485a scaffolding for signature validation 2018-10-14 02:22:20 +03:00
vyzo
d2f7a664d2 add signature and key fields to Message 2018-10-14 02:22:20 +03:00
Steven Allen
4986a90e6d gx publish 0.9.36 gx/v0.9.36 2018-10-12 16:01:29 +01:00
vyzo
32a7d82b69
Merge pull request #111 from libp2p/feat/randomsub
randomsub implementation
2018-10-12 17:44:51 +03:00
vyzo
22a647b025
Merge pull request #112 from libp2p/fix/reset-bug
fix missing reset on write errors
2018-10-12 12:48:49 +03:00
vyzo
04cac3144e gx publish 0.9.35 gx/v0.9.35 2018-10-12 12:39:58 +03:00
vyzo
71d32b2f3d fix missing reset on write errors 2018-10-12 12:22:26 +03:00
vyzo
4c3dd1330f fix floodsub id for secondary protocol 2018-10-10 17:39:38 +03:00
vyzo
06b0999ba0 randomsub implementation 2018-10-10 17:17:27 +03:00
Steven Allen
73565c04a3 gx publish 0.9.34 gx/v0.9.34 2018-10-10 11:46:14 +01:00
Steven Allen
63398892ee gx publish 0.9.33 gx/v0.9.33 2018-10-05 14:42:42 -07:00
Steven Allen
7ad3f66692 gx publish 0.9.32 gx/v0.9.32 2018-10-05 13:42:37 -07:00
Kevin Atkinson
0827f5e955 gx publish 0.9.31 gx/v0.9.31 2018-10-04 19:23:53 -04:00
Kevin Atkinson
1abb0209ce gx publish 0.9.30 gx/v0.9.30 2018-10-04 18:41:48 -04:00
Steven Allen
900095341b gx publish 0.9.29 gx/v0.9.29 2018-09-24 05:11:37 -07:00
vyzo
7560d63f69
Merge pull request #106 from jamesray1/patch-3
fix typo
2018-09-17 09:17:28 +03:00
James Ray
096722488e
pubish -> publish 2018-09-17 14:57:32 +10:00
vyzo
992b9b06ea
Merge pull request #104 from KerwinKoo/master
Just repair spelling mistake
2018-09-10 18:35:12 +03:00
gukq
91285f3022 Just repair spelling mistake
Signed-off-by: gukq <gukaiqiang@gmail.com>
2018-09-10 23:17:23 +08:00
Steven Allen
7e9278f74d gx publish 0.9.28 gx/v0.9.28 2018-09-07 23:36:25 -07:00
Steven Allen
cd8c877413 gx publish 0.9.27 gx/v0.9.27 2018-08-31 09:56:22 -07:00
Steven Allen
2c53ae3939 gx publish 0.9.26 gx/v0.9.26 2018-08-29 20:43:12 -07:00
Steven Allen
30dee56ea2
Merge pull request #102 from libp2p/fix/issue-101
Add control parameter for gossipsub initial heartbeat delay
2018-08-29 23:37:29 +00:00
vyzo
0cd357b295 control parameter for gossipsub initial heartbeat delay 2018-08-29 11:15:41 +03:00
Steven Allen
35c945373f
Merge pull request #100 from libp2p/fix/issue-98
fix data race in gossipsub piggybacking
2018-08-28 19:04:01 +00:00
vyzo
a3003697f6 more idiomatic copyRPC 2018-08-28 21:35:00 +03:00
vyzo
73b338aa6d fix nil pointer dereference in copyRPC 2018-08-28 21:17:00 +03:00
vyzo
de4adefafb fix data race in ownership of RPC when piggybacking control messages. 2018-08-28 21:07:18 +03:00
Steven Allen
02d5c50ff0 gx publish 0.9.25 gx/v0.9.25 2018-08-21 17:09:23 -07:00
vyzo
b96cf6df63
Merge pull request #95 from libp2p/feat/logging
some logging for gossipsub
2018-08-10 11:32:51 +03:00
vyzo
350ec7b44d gx publish 0.9.24 gx/v0.9.24 2018-08-10 11:13:11 +03:00
vyzo
bb5dd40680 basic logging for gossipsub 2018-08-09 12:16:19 +03:00
Steven Allen
0757ff4be4 gx publish 0.9.23 gx/v0.9.23 2018-08-08 18:50:50 -07:00
Steven Allen
528779af81
Merge pull request #94 from libp2p/feat/protobuf
update gogo protobuf
2018-08-09 01:10:56 +00:00
Steven Allen
ca7e4bc84d gx publish 0.9.22 gx/v0.9.22 2018-08-08 10:59:51 -07:00