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

0.0.3 • Public • Published

Vasku keys

cover

Use key pair in Vasku scripts

npm downloads

Read key pair from JSON file

import { readKeys } from 'vasku-keys'
// ...
const keys: KeyPair = readKeys('/home/user/keys/GiverV2.keys.json')

Generate random key pair if key file does not exist

import { generateOrReadKeys } from 'vasku-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 'vasku-keys'
// ...
const keys: KeyPair = await namedKeys('giver')

Development

CONTRIBUTING.md

/vasku-keys/

    Package Sidebar

    Install

    npm i vasku-keys

    Weekly Downloads

    1

    Version

    0.0.3

    License

    GPL-3.0

    Unpacked Size

    45.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • savonarolagirolamo