README
React Native Expo Tweet NaCl
TweetNaCl.js that work with react native expo
This package contains modified files fromTweet NaCl Demo (React Native Expo)
Example App:TweetNaCl.js Docs
Tweet NaCl documentation:Modifications
Modified nacl-fast.js in order to replace the method for generating random bytes
Used getRandomBytesAsync from expo-random in order to generate random bytes
Since getRandomBytesAsync is async the following methods have become async
- nacl.randomBytes
- nacl.box.keyPair
- nacl.sign.keyPair
- nacl.sign.keyPair.fromSeed
nacl-util.js contains useful functions to encode/decode UTF8 and Base64