@decentralized-auth/gen-seed
v1.0.1
Published
Generates an IOTA seed on Linux and macOS using the built in random number generator. For other OSes uses the insecure iota-generate-seed library.
Downloads
8
Readme
@decentralized-auth/gen-seed
Generates an IOTA seed on Linux and macOS using the built in random number generator. For other OSes uses the insecure iota-generate-seed library.
Usage
const generateSeed = require('@decentralized-auth/gen-seed');
const seed = await generateSeed();
Test
npm run test
Lint
npm run lint
Documentation
Documentation generated from docstrings with jsdoc2md.
gen-seed
Generates a seed on Linux and macOS using the built in random number generator. For other OSes uses the insecure iota-generate-seed library.
gen-seed~generateSeed()
⇒ Promise
Generates a seed by using an underlying random number generator. NOTE: Windows, FreeBSD and SunOS uses a seed generated using crypto.randomBytes(). This does not generate a secure seed.
Kind: inner method of gen-seed
Returns: Promise - A securely generated seed, unless we are on Windows,
FreeBSD or SunOS