UNPKG

2.04 kBMarkdownView Raw
1KeyLib
2=======
3
4[![NPM Package](https://img.shields.io/npm/v/@owstack/key-lib.svg?style=flat-square)](https://www.npmjs.org/package/@owstack/key-lib)
5[![Build Status](https://img.shields.io/travis/owstack/key-lib.svg?branch=master&style=flat-square)](https://travis-ci.org/owstack/key-lib)
6[![Coverage Status](https://img.shields.io/coveralls/owstack/key-lib.svg?style=flat-square)](https://coveralls.io/r/owstack/key-lib)
7
8A JavaScript cryptocurrency key library.
9
10## Get Started
11
12```
13npm install @owstack/key-lib
14```
15
16## Documentation
17
18The complete docs are hosted here: [keyLib documentation](docs/index.md).
19
20## Examples
21
22* [Generate a random key](https://github.com/owstack/key-lib/blob/master/docs/examples.md#generate-a-random-address)
23* [Generate a key from a SHA256 hash](https://github.com/owstack/key-lib/blob/master/docs/examples.md#generate-a-address-from-a-sha256-hash)
24* [Import an address via WIF](https://github.com/owstack/key-lib/blob/master/docs/examples.md#import-an-address-via-wif)
25
26## Security
27
28If you find a security issue, please email security@openwalletstack.com.
29
30## Contributing
31
32Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our [CONTRIBUTING](https://github.com/owstack/key-lib/blob/master/CONTRIBUTING.md) file.
33
34## Building the Browser Bundle
35
36To build a key-lib full bundle for the browser:
37
38```sh
39gulp browser
40```
41
42This will generate files named `key-lib.js` and `key-lib.min.js`.
43
44## Development & Tests
45
46```sh
47git clone https://github.com/owstack/key-lib
48cd key-lib
49npm install
50```
51
52Run all the tests:
53
54```sh
55gulp test
56```
57
58You can also run just the Node.js tests with `gulp test:node`, just the browser tests with `gulp test:browser`
59or create a test coverage report (you can open `coverage/lcov-report/index.html` to visualize it) with `gulp coverage`.
60
61## License
62
63Code released under [the MIT license](https://github.com/owstack/key-lib/blob/master/LICENSE).
64
65Copyright 2018 Open Wallet Stack.