0.3.0 • Published 2 years ago

@bundlefyi/crypto-utils v0.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@bundlefyi/crypto-utils

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

Install

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.

Usage

import { generateMnemonic } from '@bundlefyi/crypto-utils';
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 and here.