react-native-ethereum-wallets

An easy-to-use Ethereum wallet generator for React Native.

Usage no npm install needed!

<script type="module">
  import reactNativeEthereumWallets from 'https://cdn.skypack.dev/react-native-ethereum-wallets';
</script>

README

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