From 7cecbb9dce8b6db19d0c976248f1f0d2d6ca85f5 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 25 Oct 2018 10:15:54 -0700 Subject: [PATCH] go-ipfs-config: add pubsub message signing options to config --- config/pubsub.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/pubsub.go b/config/pubsub.go index da25b0f24..94e03e28b 100644 --- a/config/pubsub.go +++ b/config/pubsub.go @@ -1,5 +1,18 @@ package config type PubsubConfig struct { + // Router can be either floodsub (legacy) or gossipsub (new and + // backwards compatible). Router string + + // DisableSigning disables message signing. Message signing is *enabled* + // by default. + DisableSigning bool + + // StrictSignatureVerification enables strict signature verification. + // When enabled, unsigned messages will be rejected. Eventually, this + // will be made the default and this option will disappear. Once this + // happens, networks will either need to completely disable or + // completely enable message signing. + StrictSignatureVerification bool }