Update README.md

This commit is contained in:
Jaco Greeff
2019-03-23 09:33:57 +01:00
committed by GitHub
parent 222e49247f
commit bbe00d772f
+5 -10
View File
@@ -5,19 +5,14 @@ A fork of [@parity/schnorrkel-js](https://github.com/polkadot-js/schnorrkel-js/t
- WASM initialisation is done async, via Promise (this allows for clear operation in webpack environments without additional workers)
- WASM outputs are optimised via `wasm-opt` from the [binaryen](https://github.com/WebAssembly/binaryen) project
- Output bundle is wrapped with camelCase names (not including the `__***` internal functions)
- Full named functions and parameter TypeScript definitions
- Requires for crypto is wrapped, removing "on-demand-require" warnings in webpack environment
- Full named function definitions for TypeScript
- Requires for crypto is wrapped, removing the "on-demand-require" warnings in webpack-based environments
- WASM output is done via a base-64 encoded string, supporting both Node.js and browser environments
- Extensive code cleanups and addition of functions required for all sr25519 operations
- Extended tests to cover Rust, wasm (via Node) and wasm (via jest), remove (here unused) www interfaces
- TextDecoder is polyfilled by using the version from `@polkadot/util` (consistent support, alos on React Native)
- Code cleanups and addition of functions required for all sr25519 operations
- Extended tests to cover Rust, wasm (via Node) and wasm (via jest), removed the (here unused) www test interfaces
- TextDecoder is polyfilled by using the version from `@polkadot/util` (consistent support, also on React Native)
- Polyfill for crypto functions that are not available in some environments (e.g. Jest & React Native)
## development
1. Build can be done via `./build.sh`
2. Tests can be done via `./test.sh`
## future work
Support asm.js for environments (like React Native) that doesn't have WASM support. Initial attempts made at this, but not active.