mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
go-ipfs-config: add pubsub message signing options to config
This commit is contained in:
parent
765faf504e
commit
7cecbb9dce
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user