Skip to content

Commit

Permalink
Merge pull request ipfs#18 from ipfs/feat/pubsub-message-signing
Browse files Browse the repository at this point in the history
add message signing config options
  • Loading branch information
Stebalien authored Oct 26, 2018
2 parents 45f49ab + db70363 commit 2ce7ca7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/.gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.15: QmNUhkTWN7iynJZTj1RcTsQDSRGGkh87zMo9ELypxhY8Y6
0.2.16: QmPEpj17FDRpc7K1aArKZp3RsHtzRMKykeK9GVgn4WQGPR
2 changes: 1 addition & 1 deletion config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"license": "",
"name": "go-ipfs-config",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.2.15"
"version": "0.2.16"
}

13 changes: 13 additions & 0 deletions config/pubsub.go
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
}

0 comments on commit 2ce7ca7

Please sign in to comment.