vendee-keys
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

/vendee-keys/

    Package Sidebar

    Install

    npm i vendee-keys

    Weekly Downloads

    0

    Version

    1.0.1

    License

    GPL-3.0

    Unpacked Size

    150 kB

    Total Files

    14

    Last publish

    Collaborators

    • kokkekpek