react-native-ethereum-wallets

0.1.2 • Public • Published

React Native Ethereum Wallet Generator

Introduction

An easy-to-use package for React Native in plain Javascript to create private keys and corresponding Ethereum addresses. Private keys are generated by a package called react-native-securerandom, which makes use of SecRandomCopyBytes on iOS and SecureRandom on Android.

Code Samples

import walletGenerator from 'react-native-ethereum-wallets';

const privateKey = await walletGenerator.createPrivateKey();
const publicKey = walletGenerator.getPublicKey(privateKey);
const address = walletGenerator.convertToEthereumAddress(publicKey);
const checkSum = walletGenerator.addChecksum(address);

Installation

Install react-native-securerandom
$ yarn add react-native-securerandom
Then link the package
$ react-native link react-native-securerandom
Install react-native-ethereum-wallets
$ yarn add react-native-ethereum-wallets

Package Sidebar

Install

npm i react-native-ethereum-wallets

Weekly Downloads

2

Version

0.1.2

License

ISC

Unpacked Size

4.11 kB

Total Files

3

Last publish

Collaborators

  • timoz