1.2.0 • Published 4 years ago

@pigzbe/react-native-stellar-sdk v1.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

react-native-stellar-sdk

npm version

This package polyfills the stellar-sdk for React Native.

It includes native randomBytes for iOS and Android via react-native-randombytes.

Due to the asynchronous nature of React Native's native bridge, this package adds a new asynchronous method to the Stellar Keypair utility randomAsync which returns a promise that resolves to the new randomly generated Keypair.

Installation

yarn add @pigzbe/react-native-stellar-sdk

Link native randomBytes module:

react-native link react-native-randombytes

Usage

import { Keypair } from '@pigzbe/react-native-stellar-sdk'

const keypair = await Keypair.randomAsync()
const publicKey = keypair.publicKey()
const secretKey = keypair.secret()
1.2.0

4 years ago

1.1.0

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago