0.2.0 • Published 3 years ago

@getcollect/crypto-utils v0.2.0

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

@getcollect/crypto-utils

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

Install

npm i --save @getcollect/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 '@getcollect/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.