about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-06-15 17:40:18 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-06-15 17:40:18 -0500
commit77b938845aa909a70f896b759b04ba7c1b1d9aa6 (patch)
tree0d5f65c3efa2c7702f4c5eee024248b73ec36f07 /README.md
parentb2dd8d4f440243ac2eb12e7013d5a024b4e95f07 (diff)
downloadvoidsky-77b938845aa909a70f896b759b04ba7c1b1d9aa6.tar.zst
Polyfills for native crypto
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 779a78556..ba8b3cf25 100644
--- a/README.md
+++ b/README.md
@@ -24,10 +24,17 @@ Uses:
   - Web: `yarn web`
 - Tips
   - `npx react-native info` Checks what has been installed.
+  - On M1 macs, you need to exclude "arm64" from the target architectures
+    - Annoyingly this must be re-set via XCode after every pod install
 
 ## Various notes
 
 - ["SSO" flows on mobile](https://developer.okta.com/blog/2022/01/13/mobile-sso)
   - Suggests we might want to use `ASWebAuthenticationSession` on iOS
   - [react-native-inappbrowser-reborn](https://www.npmjs.com/package/react-native-inappbrowser-reborn) with `openAuth: true` might be worth exploring
-  - We might even [get rejected by the app store](https://community.auth0.com/t/react-native-ios-app-rejected-on-appstore-for-using-react-native-auth0/36793) if we don't
\ No newline at end of file
+  - We might even [get rejected by the app store](https://community.auth0.com/t/react-native-ios-app-rejected-on-appstore-for-using-react-native-auth0/36793) if we don't
+- Cryptography
+  - We rely on [isomorphic-webcrypto](https://github.com/kevlened/isomorphic-webcrypto)
+  - For the CRNG this uses [react-native-securerandom](https://github.com/robhogan/react-native-securerandom) which provides proper random on mobile
+  - For the crypto this uses [msrcrypto](https://github.com/kevlened/msrCrypto) - but we should consider switching to [the MS maintained version](https://github.com/microsoft/MSR-JavaScript-Crypto)
+  - In the future it might be preferable to move off of msrcrypto and use iOS and Android native modules, but nothing is available right now
\ No newline at end of file