react-native-ton
v2.1.0
Published
Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of `@ton/crypto`.
Downloads
98
Readme
TON crypto primitives
Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of @ton/crypto
.
Features
- 🦺 Crypto primitives: SHA-256, SHA-512, PBKDF2-SHA-256, HMAC-SHA-512
- 🚀 Promise-based API
- 🏎 Built on top of Buffer (polyfill required in browsers)
- 🍰 No reimplemented crypto
Installation
yarn add react-native-ton
Browser polyfill
React Native
To make it work on react native react-native-quick-crypto
module is required:
yarn add react-native-quick-crypto
See react-native-quick-crypto configuration in project
Optional: override global.Buffer and global.crypto in your application as early as possible for example in index.js.
// Add before using library
import { install } from "react-native-quick-crypto";
install();
License
MIT