Skip to content

dhealthproject/dhealth-paper-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dhealth/paper-wallet

License Discord

dHealth paper wallet generator for dHealth Network.

NOTE: The author(s) and contributor(s) of this package cannot be held responsible for any loss of money or for any malintentioned usage forms of this package. Please use this package with caution.

Install notes

To install the npm module on your typescript or node project run:

npm install @dhealth/paper-wallet --save

And install plugin dependencies:

npm install dhealth-sdk @dhealth/hd-wallets --save

Usage

Prepare some constants for use the module:

import { dHealthPaperWallet } from '@dhealth/paper-wallet';

const hdRootAccount = {
    mnemonic: "guess welcome coconut forum cricket unfold welcome still ticket cluster buddy fan decrease cotton model drive student assault cloth protect random equal this congress",
    rootAccountPublicKey: "TC6B74-FLJ5MR-PSXPEM-WDBWX5-VDIXA5-L5UI36-MEA",
    rootAccountAddress: "1F032B727E910D69F1B6A3244AD1B065547AA0055BC41CF4285F662182DCC18A"
};

const privateKeyAccount = {
    name: "My private key account",
    address: "TCHBDE-NCLKEB-ILBPWP-3JPB2X-NY64OE-7PYHHE-32I",
    publicKey: "3B6A27BCCEB6A42D62A3A8D02A6F0D73653215771DE243A63AC048A18B59DA29",
    privateKey: "0000000000000000000000000000000000000000000000000000000000000000"
};

const paperWallet = new dHealthPaperWallet(hdRootAccount, [privateKeyAccount], NetworkType.TEST_NET, '57F7DA205008026C776CB6AED843393F04CD458E0AA2D9F1D5F31A402072B2D6')

const uint8Array = await paperWallet.toPdf();

Getting help

Use the following available resources to get help:

Contributing

Contributions are welcome and appreciated. Check CONTRIBUTING for information on how to contribute.

License

Copyright 2019 Peersyst Technology SL

Licensed under the MIT

About

PDF Backup for dHealth Network (Paper Wallet)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •