Global

Methods

(generator) identGenerator(options) → {string}

identGenerator
Parameters:
Name Type Description
options object Options.
Properties
Name Type Description
node number The numeric ID of the node (0-1023).
signKey string The key to use for signing check.
verifyKey string The key to use for verify check.
getRandomBytes string Function to provide random bytes.
idOptions object Options passed to snowman.
Source:
Yields:
The created ident.
Type
string

validationBothFactory(options) → {boolean}

Validation factory requring both keys.
Parameters:
Name Type Description
options object Options.
Properties
Name Type Description
signKey string The key to use for signing check.
verifyKey string The key to use for verify check.
Source:
Returns:
True if valid, false if not.
Type
boolean

validationFactory(options)

Low-level validation factory. Use validationVerifyFactory, validationSignFactory, or validationBothFactory instead.
Parameters:
Name Type Description
options object Options.
Properties
Name Type Description
signKey string The key to use for signing check.
verifyKey string The key to use for verify check.
Source:
Returns:
True if valid, false if not.

validationSignFactory(options) → {boolean}

Validation factory requring a signKey.
Parameters:
Name Type Description
options object Options.
Properties
Name Type Description
signKey string The key to use for signing check.
Source:
Returns:
True if valid, false if not.
Type
boolean

validationVerifyFactory(options) → {boolean}

Validation factory requring a verifyKey.
Parameters:
Name Type Description
options object Options.
Properties
Name Type Description
verifyKey string The key to use for verify check.
Source:
Returns:
True if valid, false if not.
Type
boolean