(require("kadence/trust"))(policies, modeopt)
Registers a module:kadence/trust~TrustPlugin with a KademliaNode
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
policies | Array.<module:kadence/trust~TrustPlugin~policy> | |||
mode | number | <optional> | TrustPlugin.MODE_BLACKLIST | Blacklist or whitelist |
- Source