Commit Graph

619 Commits

Author SHA1 Message Date
Steven Allen 2ab4518e0e dep: update go-libp2p
Deal with broken tag.
2019-05-21 18:10:24 -07:00
vyzo b962da55e5
Merge pull request #176 from libp2p/feat/rework-validators
rework validator pipeline
2019-05-15 11:22:06 +03:00
vyzo 2df9d940bf remove unnecessary context in validateSingleTopic 2019-05-14 14:17:32 +03:00
vyzo f4d9eeec26 improve godocs 2019-05-14 14:03:08 +03:00
vyzo cb423f474d split off validation into its own type 2019-05-14 14:03:08 +03:00
vyzo 8d0c8d60b1 add option to control number of synchronous validation workers 2019-05-14 13:59:52 +03:00
vyzo d8f08cdba7 add support for inline (synchronous) validators 2019-05-14 13:59:52 +03:00
vyzo b84a32a4ee remove default async validation timeout and increase default topic validation throttle.
and some better documentation.
2019-05-14 13:59:52 +03:00
vyzo b227afbf9f invoke user validators once for each message 2019-05-14 13:59:52 +03:00
vyzo 7a38f7642e validation pipeline front-end for handling signature validation synchronously 2019-05-14 13:59:52 +03:00
vyzo 9d7a59f4a8
Merge pull request #181 from keep-network/test-adversarial-signing
Test adversarial signing
2019-05-08 20:27:41 +03:00
Raghav Gulati 3c78c237ce
Remove empty line in imports 2019-05-08 10:09:30 -07:00
Raghav Gulati 08c4a28ee3
Better comment for signing with a different key
Note that the second message is the incorrectly signed message.
2019-05-08 09:27:57 -07:00
Raghav Gulati a726a896db
Use names rather than index
We've aliased array elements, use the explicit names instead.
2019-05-08 09:27:26 -07:00
Raghav Gulati 594e6a4ab9
Add a note why we're expecting two messages
As the adversary has turned of signature verification, we should expect
to see two messages (the correctly signed and the incorrectly signed
one) when we publish. Those that have verification on, should only see
one.
2019-05-08 09:00:25 -07:00
Raghav Gulati 84bb35ebf4
Bump wait from 10 -> 50ms
This matches the waits in the rest of the package.
2019-05-08 09:00:00 -07:00
Raghav Gulati b136dae80c
Remove erroneous subscribe 2019-05-08 08:59:47 -07:00
Raghav Gulati 8272eb583e
Change test name to reflect no relaying
Improperly named test. In this test, we're only testing that we reject
malicious messages.
2019-05-08 08:59:12 -07:00
Raghav Gulati 516c32e854
Remove commented out code
bhost import was commented out.
2019-05-07 15:05:00 -07:00
Raghav Gulati 6b2635b6ac
adversaryPeer -> adversary 2019-05-07 10:17:55 -07:00
Raghav Gulati d740f53531
adversarial -> adversary 2019-05-07 10:14:37 -07:00
Raghav Gulati b44471d7ce
Ensure that the received message is the correct one 2019-05-07 10:10:05 -07:00
Raghav Gulati ed746477f9
Reduce time to wait
2 seconds per wait seemed a bit aggressive. Halved the total time of the test.
2019-05-07 10:09:40 -07:00
Raghav Gulati c33d8a8353
Add test for improperly signed message
Test the case where an adversarial peer signs a message with a key they
didn't originally register with. First, we test that an adversarial peer
will allow the message to pass through validation as they turn off
strict verification (putting themselves at risk), but an honest peer
with strict verification on will never see the message!
2019-05-07 09:56:09 -07:00
Steven Allen 9db3dbdde9
Merge pull request #180 from libp2p/feat/strict-signing
Strict message signing by default
2019-05-02 10:31:56 -07:00
vyzo 4d328a35c0 strict message signing by default 2019-05-02 20:15:55 +03:00
Steven Allen da5d1479f6
Merge pull request #178 from libp2p/chore/fix-ci-tests
Fix CI tests
2019-04-30 01:07:09 -07:00
vyzo 5f50a58aed skip TestGossipsubControlPiggyback, it makes travis unhappy 2019-04-30 10:50:53 +03:00
vyzo 95071e955a pacify the race detector in TestGossipsubFanoutExpiry 2019-04-30 10:49:02 +03:00
Raúl Kripalani 9b156866c6 farewell gx; thanks for serving us well. 2019-04-11 21:11:16 +01:00
Yusef Napora 8187926557 update readme badges 2019-04-09 12:02:20 -04:00
Raúl Kripalani a9188f62af remove Jenkinsfile. 2019-03-11 16:14:40 +00:00
vyzo c928ccafe0
Merge pull request #168 from libp2p/gx/update
gx publish 0.11.16
2019-03-07 15:24:57 +02:00
vyzo b0da703a22 gx publish 0.11.16 2019-03-07 15:24:36 +02:00
Raúl Kripalani 485028263d
Merge pull request #166 from libp2p/gomod
add gomod support // tag v0.0.1.
2019-03-02 00:37:22 +00:00
Raúl Kripalani 25cbf38777 add gomod support // tag v0.0.1. 2019-03-02 00:13:11 +00:00
Steven Allen f8276dc198 gx publish 0.11.15 2019-02-27 11:55:05 -08:00
Hector Sanjuan 338156bb63
Merge pull request #164 from libp2p/gx/update-9hkcv6
gx publish 0.11.14
2019-02-26 22:59:03 +00:00
Hector Sanjuan 2807e08544 gx publish 0.11.14 2019-02-26 22:53:03 +00:00
Steven Allen 30f6484345
Merge pull request #163 from libp2p/badge-update
Update badges for consistency across libp2p repos
2019-02-20 16:10:50 -08:00
Yusef Napora ec67a03cbf chore: update badges for consistency across libp2p org 2019-02-20 16:09:28 -05:00
Jakub Sztandera 3b73061df9 gx publish 0.11.13 2019-02-18 19:59:14 +01:00
Jakub Sztandera 996de2472e gx publish 0.11.12 2019-02-18 16:32:05 +01:00
Steven Allen 931b6d01cb gx publish 0.11.11 2019-02-07 15:35:01 -08:00
vyzo d4589956d2
Merge pull request #156 from libp2p/fix/issue-155
move timecache check/update after validation
2019-01-22 00:51:56 +02:00
vyzo 4b55053bfb add early timecache check for already validated messages 2019-01-22 00:47:12 +02:00
vyzo 67eece2526 move timecache check/update after validation 2019-01-21 23:57:59 +02:00
vyzo ef065c2b1c
Merge pull request #154 from libp2p/fix/issue-153
fix nonsensical check
2019-01-21 00:26:38 +02:00
vyzo 73491150d9 fix nonsensical check 2019-01-21 00:22:32 +02:00
vyzo bfd65a2f6b
Merge pull request #151 from libp2p/feat/validator
Extend validator interface to include message source
2019-01-17 18:09:14 +02:00