# @bundlefyi/crypto-utils

> A collection of crypto utilities used by Bundle

Latest version **0.3.0** (published 2022-06-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @bundlefyi/crypto-utils
pnpm add @bundlefyi/crypto-utils
yarn add @bundlefyi/crypto-utils
bun add @bundlefyi/crypto-utils
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2022-06-19 |
| First published | 2022-06-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dev@bundle.fyi |
| Maintainers | jkbowa |
| Keywords | crypto, utilities, collect, wallet, aleph zero |

## Links

- npm: https://www.npmjs.com/package/@bundlefyi/crypto-utils
- Repository: https://github.com/bundlefyi/crypto-utils
- Homepage: https://github.com/bundlefyi/crypto-utils#readme
- Issues: https://github.com/bundlefyi/crypto-utils/issues
- npm.io page: https://npm.io/package/@bundlefyi/crypto-utils

## Dependencies (3)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.17.8
- [randombytes-pure](https://npm.io/package/randombytes-pure.md) ^4.1.0
- [sha256-uint8array](https://npm.io/package/sha256-uint8array.md) ^0.10.3

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2022-06-19

## README

# @bundlefyi/crypto-utils

A collection of useful crypto utilities for react-native used by Bundle.

## Install

```javascript
npm i --save @bundlefyi/crypto-utils
```

## Mnemonic Generation

#### Description

`generateMnemonic` implements the generation of a mnemonic code (or mnemonic sentence) - a group of easy to remember words used to generate _deterministic wallets_ using [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).

#### Usage

```typescript
import { generateMnemonic } from '@bundlefyi/crypto-utils';
```

```typescript
const seed = generateMnemonic(12);

console.log('->', seed);
// => seed sock milk update focus rotate barely fade car face mechanic mercy
```

#### Note

A good explanation of how to implement the key generation and wallet recovery can be found [here](https://www.youtube.com/watch?v=c8EZkeeacR0) and [here](https://medium.com/coinmonks/mnemonic-generation-bip39-simply-explained-e9ac18db9477).

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