0.3.7 • Published 5 years ago

@catalyst-net-js/wallet v0.3.7

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Catalyst-js/wallet

Discord Twitter Follow

Status: Active development. This repository is being actively worked on, mostly in feature branches.

Install

npm install @catalyst-js/wallet

Usage

Constructors

import Wallet from '@catalyst-net-js/wallet'

// create an instance based on a new random key
const wallet = Wallet.generate();

// create an instance based on a raw private key
const wallet = Wallet.generateFromPrivateKey(privateKey);

// create an instance based on a seed
const wallet = Wallet.generateFromSeed(seed);

Instance methods

// return the private key
const privateKey = wallet.getPrivateKey(); 
// return the private key as a base32 string
const privateKeyString = wallet.getPrivateKeyString(); 
// return the private key
const privateKey = wallet.getPublicKey(); 
// return the private key as a base32 string
const privateKeyString = wallet.getPublicKeyString(); 

License

GPLv3

0.3.7

5 years ago

0.3.6

5 years ago

0.3.3

5 years ago

0.1.1-alpha.11

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.1.1-alpha.9

5 years ago

0.2.1

5 years ago

0.1.1-alpha.7

5 years ago

0.2.0

5 years ago

0.1.1-alpha.6

5 years ago

0.1.1-alpha.1

5 years ago

0.1.1-alpha.5

5 years ago

0.1.0

5 years ago

0.0.10-alpha.6

5 years ago

0.0.10-alpha.5

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago