go-ipfs-config: add pubsub message signing options to config
Steven Allen committed
Oct 25, 2018 at 10:15 UTC
7cecbb9dce8b6db19d0c976248f1f0d2d6ca85f5
1 file changed
+13
config/pubsub.go
+13
@@ -1,5 +1,18 @@
1
package config
2
3
type PubsubConfig struct {
4
+ // Router can be either floodsub (legacy) or gossipsub (new and
5
+ // backwards compatible).
6
Router string
7
+
8
+ // DisableSigning disables message signing. Message signing is *enabled*
9
+ // by default.
10
+ DisableSigning bool
11
+
12
+ // StrictSignatureVerification enables strict signature verification.
13
+ // When enabled, unsigned messages will be rejected. Eventually, this
14
+ // will be made the default and this option will disappear. Once this
15
+ // happens, networks will either need to completely disable or
16
+ // completely enable message signing.
17
+ StrictSignatureVerification bool
18
}