1.0.1 • Published 2 years ago

vendee-keys v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

Vendee keys

cover

Methods of working with key pair in Vendee scripts and tests

npm downloads

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