|
|
@ -58,12 +58,18 @@ There is a browser example included in [example.html](example.html) and [example |
|
|
|
The bulk of this module is implemented in WebAssembly in the [blake2b.wat](blake2b.wat) file. |
|
|
|
The format of this file is S-Expressions that can be compiled to their binary WASM representation by doing |
|
|
|
|
|
|
|
``` |
|
|
|
wat2wasm blake2b.wat -o blake2b.wasm |
|
|
|
``` |
|
|
|
|
|
|
|
To build the thin Javascript wrapper for the WASM module use `wat2js`: |
|
|
|
|
|
|
|
``` |
|
|
|
# also available as `npm run compile` |
|
|
|
wast2wasm blake2b.wat -o blake2b.wasm |
|
|
|
wat2js blake2b.wat -o blake2b.js |
|
|
|
``` |
|
|
|
|
|
|
|
If you do not have `wast2wasm` installed follow the instructions here, https://github.com/WebAssembly/wabt |
|
|
|
If you do not have `wat2wasm` installed follow the instructions here, https://github.com/WebAssembly/wabt |
|
|
|
|
|
|
|
## License |
|
|
|
|
|
|
|