Commit Graph

472 Commits

Author SHA1 Message Date
Steven Allen 017e522caa test nonsensical options 2018-10-25 16:57:00 -07:00
Steven Allen 7303abae4b forbid sign strict without signing enabled 2018-10-25 16:52:22 -07:00
Steven Allen 107b3bdc97 gx publish 0.11.0 2018-10-25 09:54:49 -07:00
vyzo 50ba3c2ae2
Merge pull request #121 from libp2p/feat/message-signing-options
rework message signing options
2018-10-25 19:39:42 +03:00
Steven Allen 5557880eed fix grammer in option comment 2018-10-25 09:33:57 -07:00
Steven Allen b7b87f0235 ci: bump go to 1.11 2018-10-25 06:46:04 -07:00
Steven Allen fba434025b rework message signing options
Previously, there was no non-breaking upgrade path to enable message signing by
default while still providing a way to disable it. This patch breaks the options
into:

1. WithMessageSigning - actually enable message signing.
2. WithStrictSignatureVerification - enforce strict signature verification.
3. WithMessageAuthor - set the message author (independent of signing).

Now, users can explicitly set all three options and any changes we make to the
defaults will never override these explicit settings.

This patch *also* enables *signing* by default but not strict signature
verification. We obviously can't enable verification by default yet but I see no
reason not to enable signing. Basically, we're either hurting performance or
security by default. Security issues are generally only noticed once it's too
late. Performance issues can be caught ahead of time.
2018-10-25 06:41:49 -07:00
Steven Allen 3d408775de gx publish 0.10.2 2018-10-24 14:58:20 -07:00
Steven Allen b8825b7cd7 gx publish 0.10.1 2018-10-24 09:50:33 -07:00
Steven Allen 107d351038 gx publish 0.10.0 2018-10-18 21:10:50 +01:00
Steven Allen bd1a4630b9 move to go-libp2p-pubsub
Updates for move from go-floodsub to go-libp2p-pubsub.

fixes https://github.com/libp2p/go-libp2p-pubsub/issues/4
2018-10-18 21:10:16 +01:00
James Ray 4e9a7a9b4d Update links, usage and implementations (#116)
* Update links, usage and implementations

* Remove gossipsub impl link
2018-10-18 11:28:09 +03:00
vyzo d04842e15b
Merge pull request #114 from jamesray1/patch-4
Remove // topicID = hash(topicDescriptor); (not the topic.name)
2018-10-17 11:23:40 +03:00
James Ray a456e56304
Remove // topicID = hash(topicDescriptor); (not the topic.name) 2018-10-17 10:57:59 +11:00
Steven Allen 05e4666176 gx: update go-libp2p-peer 2018-10-16 12:14:46 +01:00
vyzo 2318ce2a31
Merge pull request #113 from libp2p/fix/public-key-extraction
fix public key extraction for abnormal ExtractPublicKey semantics
2018-10-14 12:14:00 +03:00
vyzo 8a8966b4ab fix public key extraction for abnormal ExtractPublicKey semantics 2018-10-14 11:59:28 +03:00
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 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 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 2018-10-10 11:46:14 +01:00
Steven Allen 63398892ee gx publish 0.9.33 2018-10-05 14:42:42 -07:00
Steven Allen 7ad3f66692 gx publish 0.9.32 2018-10-05 13:42:37 -07:00
Kevin Atkinson 0827f5e955 gx publish 0.9.31 2018-10-04 19:23:53 -04:00
Kevin Atkinson 1abb0209ce gx publish 0.9.30 2018-10-04 18:41:48 -04:00
Steven Allen 900095341b gx publish 0.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