- crypto - core cryptographic functions.
- client - implementations of UND Mainchain transaction types, such as for transfers and enterprise and REST queries.
- accounts - management of "accounts" and wallets, including seed and encrypted mnemonic generation.
Important, please follow the instructions for your OS below:
Windows users: Please install windows-build-tools first.
Mac users: Make sure XCode Command Line Tools are installed:
Linux users: Note that Ubuntu Xenial and newer distributions are recommended, especially when using Travis or other CI systems. You may need some dev packages to be installed on your system for USB support. On Debian-based distributions (like Ubuntu) you should install them with this command:
$ sudo apt-get install libudev-dev libusb-dev usbutils
Install the NPM package
$ npm i @unification-com/und-js --no-optional
For up-to-date API documentation, please check the API Docs.
Tests are currently run against the UND Mainchain DevNet
All new code changes should be covered with unit tests. You can run the tests with the following command:
$ npm run test