This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-native-expo49-bitcoinjs-lib

1.0.8 • Public • Published

React Native Expo BitcoinJS (react-native-expo49-bitcoinjs-lib)

js-standard-style

React Native-ready fork of react-native-expo-bitcoinjs-lib which was a fork of the original bitcoinjs package.

I needed a bitcoinjs-lib version that was compatible with react-native and expo sdk 49. The repo I forked react-native-expo-bitcoinjs-lib used expo-random, which is deprecated and no longer supported in expo sdk 49. So I replaced the code using expo-random with expo-crypto. Test first before you trust it! This is still very new and I am still working out the issues and adding support for my needs. It does not have all the functionality as the bitcoinjs-lib.

Installation

yarn: yarn add react-native-expo49-bitcoinjs-lib or npm: npm install react-native-expo49-bitcoinjs-lib

Usage

Edit index.android.js and index.ios.js

import Bitcoin from 'react-native-expo49-bitcoinjs-lib'
[...]
const keypair = await Bitcoin.ECPair.makeRandom()
console.log(keypair.getAddress()) // your brand new base58-encoded Bitcoin address

Examples

Run the example app or refer to the original repository for more available examples.

LICENSE MIT

Released under MIT license

Dependencies (13)

Dev Dependencies (25)

Package Sidebar

Install

npm i react-native-expo49-bitcoinjs-lib

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

92.1 kB

Total Files

43

Last publish

Collaborators

  • timknapp12