forked from ipfs/kubo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go-ipfs-config: Merge pull request ipfs#18 from ipfs/feat/pubsub-mess…
…age-signing add message signing config options
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |