Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-builds-react-native

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-builds-react-native

Browser builds of ethereumjs libraries.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

ethereumjs browser builds

This repository contains browser builds of certain ethereumjs libraries. They are built using browserify with a known set of working dependencies.

Usage

In your web application, include only one of the builds form the dist directory. All exports will be available under the global EthJS.

You should be import they first:

https://github.com/WoeOm/react-native-secure-randombytes https://github.com/WoeOm/react-native-safe-crypto

import { asyncRandomBytes } from 'react-native-secure-randombytes'
import safeCrypto from 'react-native-safe-crypto'

window.randomBytes = asyncRandomBytes
window.scryptsy = safeCrypto.scrypt

demo:

let code = await EthJs.Mnemonic.randomPhrase()

const derivePath = `m/44'/60'/0'/0/0`
let seedBuffer = EthJs.Mnemonic.phraseToSeed(code)

const key = EthJs.WalletHD.fromMasterSeed(seedBuffer);

const wallet = key.derivePath(derivePath).getWallet();

-------------------------

const wallet = await EthJs.Wallet.generate()

Note: all packages expect ECMAScript 6 (ES6) as a minimum environment. From browsers lacking ES6 support, please use a shim (like es6-shim) before including any of the builds from this repo.

Build

Run webpack to generate a new set up builds. Change package.json to require different versions of the libraries.

Keywords

FAQs

Package last updated on 17 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc