vendee-keys
v1.0.1
Published
Methods of working with key pair
Downloads
10
Maintainers
Readme
Vendee keys
Methods of working with key pair in Vendee scripts and tests
How to use
Read key pair from JSON file
import { readKeys } from 'vendee-keys'
// ...
const keys: KeyPair = readKeys('/home/user/keys/GiverV2.keys.json')
Generate random key pair if key file does not exist
import { generateOrReadKeys } from 'vendee-keys'
// ...
const keys: KeyPair = await generateOrReadKeys('/home/user/keys/GiverV3.keys.json')
Generate JSON file with random key pair in keys directory if key file does not exist
import { namedKeys } from 'vendee-keys'
// ...
const keys: KeyPair = await namedKeys('giver')
Development
Build
yarn build
Remove build directory
yarn clean
Lint
Run before commit
yarn lint
yarn fix