JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q64157F
  • License ISC

A library to aid in the generation of stellar keystore files

Package Exports

  • stellar-keystore

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stellar-keystore) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Stellar Keystore

Getting Started

npm install stellar-keystore --save
import {StellarKeystore} from 'stellar-keystore';

You can also include it directly in the browser as a script tag and use StellarKeystore via the window object.

Methods

download()

Creates a keystore file's contents using a provided password and a random keypair. Returns a json object representing the keypair file.

Use like so:

create('someRandomPassword');

createAndDownload()

Creates a keystore file (using a random keypair) and downloads it.

Use like so:

createAndDownload('someRandomPassword', 'desiredFileName');

keypair()

Retrieves a stellar keypair from a keystore file.

Use like so:

keypair(file, 'passwordForFile');

where file is an object of type File