27 lines
1.8 KiB
Markdown
27 lines
1.8 KiB
Markdown
[](https://polkadot.js.org)
|
|

|
|
[](https://github.com/Flet/semistandard)
|
|
[](https://travis-ci.com/polkadot-js/wasm)
|
|
[](https://codeclimate.com/github/polkadot-js/wasm/maintainability)
|
|
[](https://greenkeeper.io/)
|
|
|
|
# @polkadot/wasm
|
|
|
|
Various WASM wrappers around Rust crates
|
|
|
|
## overview
|
|
|
|
It is split up into a number of internal packages, namely utilities -
|
|
|
|
- [wasm-crypto](packages/wasm-crypto/) Various hashing functions
|
|
- [wasm-dalek-ed25519](packages/wasm-dalek-ed25519/) ed25519
|
|
- [wasm-schnorrkel](packages/wasm-schnorrkel/) sr25519
|
|
|
|
These are split from the `polkadot-js/util` repo where it is heavily used as part of `@polkadot/util-crypto`. (There JS fallbacks are available for some interfaces, e.g. hashing, but for sr25519 WASM is the only interface). Since these don't undergo massive changes on a daily basis and has a build overhead (WASM compilation & optimisation), it is better managed as a seperate repo with a specific CI configuration.
|
|
|
|
## development
|
|
|
|
Contributions are welcome!
|
|
|
|
To start off, this repo (along with others in the [@polkadot](https://github.com/polkadot-js/) family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies _should_ be installed via `yarn`, not via npm; the latter will result in broken dependencies.
|