Package Exports
- @dashevo/wasm-dpp
- @dashevo/wasm-dpp/dist
- @dashevo/wasm-dpp/dist/index.js
- @dashevo/wasm-dpp/lib/test/fixtures/getDataContractFixture
- @dashevo/wasm-dpp/lib/test/fixtures/getDataContractFixture.js
- @dashevo/wasm-dpp/lib/test/fixtures/getDocumentsFixture
- @dashevo/wasm-dpp/lib/test/fixtures/getDocumentsFixture.js
- @dashevo/wasm-dpp/lib/test/fixtures/getIdentityFixture
- @dashevo/wasm-dpp/lib/test/fixtures/getIdentityFixture.js
- @dashevo/wasm-dpp/lib/test/utils/generateRandomIdentifierAsync
- @dashevo/wasm-dpp/lib/test/utils/generateRandomIdentifierAsync.js
- @dashevo/wasm-dpp/lib/utils/hash
- @dashevo/wasm-dpp/lib/utils/hash.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dashevo/wasm-dpp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dash Platform Protocol JS
The WASM JavaScript binding of the Rust implementation of the Dash Platform Protocol
THIS IS A DEV VERSION, NOT INTENDED FOR A PRODUCTION USAGE JUST YET
Dev environment
In order for this binding to work, you have to have a rs-platform cloned alongside platform repo, so you can have access to the rust dpp.
IMPORTANT
Build on a Mac
Built-in llvm on OSX does not work, it needs to be installed from brew:
brew install llvm- LLVM installed from brew is keg only, and path to it must be provided in the profile file, e.g.
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
Class names minification
Library consumers must ignore class names minification for @dashevo/wasm-dpp library in their bundlers.
Table of Contents
Prerequisites
- Install Rust v1.73+
- Add wasm32 target:
$ rustup target add wasm32-unknown-unknown - Install wasm-bingen-cli:
cargo install wasm-bindgen-cli@0.2.103- double-check that wasm-bindgen-cli version above matches wasm-bindgen version in Cargo.lock file
- Depending on system, additional packages may need to be installed as a prerequisite for wasm-bindgen-cli. If anything is missing, installation will error and prompt what packages are missing (i.e. clang, llvm, libssl-dev)
Build
$ yarn build
TODO
Usage
TODO
Maintainer
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Dash Core Group, Inc.