<commit_before># ![Logo](assets/logo_64.png) nem-toolchain

[![Join the chat at https://gitter.im/nem-toolchain/Lobby](https://img.shields.io/gitter/room/badges/shields.svg?style=flat-square)](https://gitter.im/nem-toolchain/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Release](https://img.shields.io/github/release/r8d8/nem-toolchain.svg?style=flat-square)](https://github.com/r8d8/nem-toolchain/releases/latest)
[![CircleCI](https://img.shields.io/circleci/project/github/r8d8/nem-toolchain.svg?style=flat-square)](https://circleci.com/gh/r8d8/nem-toolchain)
[![Travis](https://img.shields.io/travis/r8d8/nem-toolchain.svg?style=flat-square)](https://travis-ci.org/r8d8/nem-toolchain)
[![Coverage Status](https://img.shields.io/codecov/c/github/r8d8/nem-toolchain/master.svg?style=flat-square)](https://codecov.io/gh/r8d8/nem-toolchain)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/r8d8/nem-toolchain)
[![Go Report Card](https://goreportcard.com/badge/github.com/r8d8/nem-toolchain?style=flat-square)](https://goreportcard.com/report/github.com/r8d8/nem-toolchain)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)

Command line toolchain for [NEM blockchain](https://nem.io).

## Prerequisites

* [Go 1.8+](http://golang.org/doc/install)

## How to install

To install, simply run:

```shell
go get github.com/r8d8/nem-toolchain/cmd/nem
```

Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can be easily used:

```bash
export PATH=$PATH:$GOPATH/bin
```

## Usage examples

### New accounts

How to create a new account for testnet:

```
> nem --chain testnet account generate
Address: TBYLAB-4RILJG-ZAUH65-YVTRDO-VH52P4-ZDPDO3-SWHS
Public key: <KEY>
Private key: <KEY>
```

Instead of option you can specify the desired network via environment variables:

```
> NEM_CHAIN=testnet nem account generate
...
```

### Vanity addresses

How to find vanity address with predefined prefix `CGQQK` for testnet:

```
> nem --chain testnet account vanity CGQQK
Address: TCGQQK-N5HED6-6OQ67Z-2F7GGW-Z66DWV-BFJUW6-F5WC
Public key: <KEY>
Private key: 4e017065d62f10223b989ff3f75a845fbe3df73d6c0e6d67cc4c59bea3213002
```

If you would like to search for multiple prefixes at the same time and without digits at all:

```
> nem --chain testnet account vanity --no-digits TABC TACB TBAC TBCA TCAB TCBA
Address: TACBLF-CJBFVE-TPTUIP-HBIRVI-PHQKKD-OSJMOF-KGNU
Public key: <KEY>
Private key: <KEY>
```

Important notes:

1. Mainnet addresses start with `N`, Mijin - with `M`, Testnet - with `T`.
1. Second symbols are `A`, `B`, `C`, or `D` only, so for mainnet you won't find addresses that start with `NE` or `N4`.
1. The digits `0`, `1`, `8` and `9` are not part of [Base32 encoding](https://en.wikipedia.org/wiki/Base32) and therefore will not appear in any address. 

## Bugs and Feedback

For bugs please use the [GitHub Issues](https://github.com/r8d8/nem-toolchain/issues),
for questions and discussions you are welcome to the [Gitter Chat](https://gitter.im/nem-toolchain/Lobby).<commit_msg>Wrong example in `README.md`<commit_after># ![Logo](assets/logo_64.png) nem-toolchain

[![Join the chat at https://gitter.im/nem-toolchain/Lobby](https://img.shields.io/gitter/room/badges/shields.svg?style=flat-square)](https://gitter.im/nem-toolchain/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Release](https://img.shields.io/github/release/r8d8/nem-toolchain.svg?style=flat-square)](https://github.com/r8d8/nem-toolchain/releases/latest)
[![CircleCI](https://img.shields.io/circleci/project/github/r8d8/nem-toolchain.svg?style=flat-square)](https://circleci.com/gh/r8d8/nem-toolchain)
[![Travis](https://img.shields.io/travis/r8d8/nem-toolchain.svg?style=flat-square)](https://travis-ci.org/r8d8/nem-toolchain)
[![Coverage Status](https://img.shields.io/codecov/c/github/r8d8/nem-toolchain/master.svg?style=flat-square)](https://codecov.io/gh/r8d8/nem-toolchain)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/r8d8/nem-toolchain)
[![Go Report Card](https://goreportcard.com/badge/github.com/r8d8/nem-toolchain?style=flat-square)](https://goreportcard.com/report/github.com/r8d8/nem-toolchain)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)

Command line toolchain for [NEM blockchain](https://nem.io).

## Prerequisites

* [Go 1.8+](http://golang.org/doc/install)

## How to install

To install, simply run:

```shell
go get github.com/r8d8/nem-toolchain/cmd/nem
```

Make sure your `PATH` includes the `$GOPATH/bin` directory so your commands can be easily used:

```bash
export PATH=$PATH:$GOPATH/bin
```

## Usage examples

### New accounts

How to create a new account for testnet:

```
> nem --chain testnet account generate
Address: TBYLAB-4RILJG-ZAUH65-YVTRDO-VH52P4-ZDPDO3-SWHS
Public key: <KEY>
Private key: <KEY>
```

Instead of option you can specify the desired network via environment variables:

```
> NEM_CHAIN=testnet nem account generate
...
```

### Vanity addresses

How to find vanity address with predefined prefix `TCGQQK` for testnet:

```
> nem --chain testnet account vanity TCGQQK
Address: TCGQQK-N5HED6-6OQ67Z-2F7GGW-Z66DWV-BFJUW6-F5WC
Public key: <KEY>
Private key: 4e017065d62f10223b989ff3f75a845fbe3df73d6c0e6d67cc4c59bea3213002
```

If you would like to search for multiple prefixes at the same time and without digits at all:

```
> nem --chain testnet account vanity --no-digits TABC TACB TBAC TBCA TCAB TCBA
Address: TACBLF-CJBFVE-TPTUIP-HBIRVI-PHQKKD-OSJMOF-KGNU
Public key: <KEY>
Private key: ae4e943300554508d52c863329a53e40787e994e7c2733d54c378fb88421d387
```

Important notes:

1. Mainnet addresses start with `N`, Mijin - with `M`, Testnet - with `T`.
1. Second symbols are `A`, `B`, `C`, or `D` only, so for mainnet you won't find addresses that start with `NE` or `N4`.
1. The digits `0`, `1`, `8` and `9` are not part of [Base32 encoding](https://en.wikipedia.org/wiki/Base32) and therefore will not appear in any address. 

## Bugs and Feedback

For bugs please use the [GitHub Issues](https://github.com/r8d8/nem-toolchain/issues),
for questions and discussions you are welcome to the [Gitter Chat](https://gitter.im/nem-toolchain/Lobby).
{'fraction_non_alphanumeric': 0.1560360920970753, 'fraction_numerical': 0.039047915370255135, 'mean_word_length': 5.199614271938284, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 20, 'https://': 38, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '392233', 'n_tokens_mistral': 2633, 'n_tokens_neox': 2425, 'n_words': 490}