1.0.20 • Published 1 year ago

zentcash-utils v1.0.20

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

Zent Cash

Zent Cash Javascript Utilities

NPM

Prerequisite Documentation Maintenance License: GPL-3.0

Master Build Status

Build Status

Development Build Status

Build Status

This package contains code that wraps zentcash-crypto primitives into an easier to use interface. This includes the ability to easily discover funds for a wallet, create transactions, sign transactions (ring signatures), create new wallets, verify addresses, and handful of other useful methods. These methods can then be wrapped into a Javascript-based wallet such as zentcash-wallet-backend-js.

If you experience any issues with this library, the best way to address such situations is to submit a Pull Request to resolve the issue you are running into.

Installation

npm install zentcash-utils

Initialization

JavaScript

const ZentCashUtils = require('zentcash-utils').CryptoNote
const coinUtils = new ZentCashUtils()

TypeScript

import { CryptoNote } from 'zentcash-utils'
const coinUtils = new CryptoNote()

You can find TypeScript type definitions here

Browser Support

When packing for the browser with a tool like webpack we advise that you use the ready event of the webpacked module to determine when the Cryptographic methods are available.

<script src="ZentCashUtils.js"></script>
<script>
  ZentCashUtils.on('ready', () => {
    const coinUtils = new ZentCashUtils.CryptoNote()
  })
</script>

Documentation

You can find the full documentation for this library here

Credits

Special thanks goes out to: