Class: PermissionSolution

module:kadence/permission~ PermissionSolution

Represents a solution that can be serialized and stored

new PermissionSolution(solution [, owner])

Parameters:
Name Type Argument Description
solution buffer Byte representation of the solution input
owner buffer <optional>
Identity key of owner
Source:

Methods


pack()

Serializes the solution object for storage in the DHT
Source:
Returns:
Type
Array.<string>

signIssuance(prv)

Signs the solution with the supplied private key
Parameters:
Name Type Description
prv buffer Private key for signatures
Source:
Returns:
Type
module:kadence/permission~PermissionSolution

signOrigin(prv)

Signs the solution with the supplied private key
Parameters:
Name Type Description
prv buffer Private key for signatures
Source:
Returns:
Type
module:kadence/permission~PermissionSolution

toBuffer()

Converts to a buffer
Source:
Returns:
Type
buffer

verify()

Verifies the solution is valid
Source:
Returns:
Type
module:kadence/permission~PermissionSolution