# wif-smart

> SmartCash Wallet Import Format (WIF) decoding/encoding module

Latest version **2.0.0** (published 2017-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install wif-smart
pnpm add wif-smart
yarn add wif-smart
bun add wif-smart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-11-15 |
| First published | 2017-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | SmartCash Developers |
| Maintainers | davidkevork |
| Keywords | smartcash, base58, base58check, base58smartcheck, decode, decoding, encoding, encode, key, private, wif, wif-smart |

## Links

- npm: https://www.npmjs.com/package/wif-smart
- Repository: https://github.com/SmartCash/wif
- Issues: https://github.com/SmartCash/wif/issues
- npm.io page: https://npm.io/package/wif-smart

## Dependencies (1)

- [bs58smartcheck](https://npm.io/package/bs58smartcheck.md) ^2.0.4

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-11-15

## README

# WIF
[![NPM](http://img.shields.io/npm/v/wif-smart.svg)](https://www.npmjs.org/package/wif-smart)


SmartCash Wallet Import Format encoding/decoding module.


## Example

``` javascript
var wifsmart = require('wif-smart')
var privateKey = new Buffer('0000000000000000000000000000000000000000000000000000000000000001', 'hex')
var key = wifsmart.encode(191, privateKey, true)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1

var obj = wifsmart.decode(key)
// => {
//	version: 191,
//	privateKey: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01>,
//	compressed: true
//}

wifsmart.encode(obj)
// => VFkSCpppSMzG7qXidUPa4F52XzNbSvnr6NytsmB5nPwwnj37EbQ1
```

## LICENSE [MIT](LICENSE)

---
_Source: https://npm.io/package/wif-smart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
