Class: PermissionPlugin

module:kadence/permission~ PermissionPlugin

Includes a proof of work solution in STORE messages and exposes a PermissionWallet for storing PermissionSolutions that come from a PermissionSolver

new PermissionPlugin(node, options)

Parameters:
Name Type Description
node KademliaNode
options object
Properties
Name Type Description
privateKey buffer ECDSA private key buffer
walletPath string Directory to store solutions
Source:

Methods


iterativeStore(solution, value, callback)

Performs additional solution routines before storing a value
Parameters:
Name Type Description
solution PermissionSolution The permission solution to unlock
value buffer Value to store in DHT entry
callback KademliaNode~iterativeStoreCallback
Source: