You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ts/index.ts
+5-27Lines changed: 5 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,7 @@ interface GossipInputOptions {
31
31
doPX: boolean
32
32
msgIdFn: MessageIdFunction
33
33
messageCache: MessageCache
34
-
signMessages: boolean
35
-
strictSigning: boolean
34
+
globalSignaturePolicy: string
36
35
scoreParams: Partial<PeerScoreParams>
37
36
scoreThresholds: Partial<PeerScoreThresholds>
38
37
directPeers: AddrInfo[]
@@ -110,10 +109,8 @@ class Gossipsub extends Pubsub {
110
109
* @param {bool} [options.fallbackToFloodsub] if dial should fallback to floodsub, defaults to true
111
110
* @param {bool} [options.floodPublish] if self-published messages should be sent to all peers, defaults to true
112
111
* @param {bool} [options.doPX] whether PX is enabled; this should be enabled in bootstrappers and other well connected/trusted nodes. defaults to false
113
-
* @param {MessageIdFunction} [options.msgIdFn] override the default message id function
114
112
* @param {Object} [options.messageCache] override the default MessageCache
115
-
* @param {bool} [options.signMessages] if we want to sign outgoing messages or not (default: true)
116
-
* @param {bool} [options.strictSigning] if message signing is required for incoming messages or not (default: true)
113
+
* @param {string} [options.globalSignaturePolicy] signing policy to apply across all messages (default: "StrictSign")
0 commit comments