- Remove
bip39ToSeed
, we only use thebip39ToMiniSecret
variant in Substrate - Update ed25519-dalek to 1.0.0-pre.4
- Adjust build process for smaller wasm bundle outputs (~50K dropped from base bundle)
- Unpin nightly from nightly-2020-02-17 version
- Swap to yarn 2 and add support for use by yarn 2 projects
- Important The sr25519 interface dropped the use of
verify_simple_preaudit_deprecated
for signature verification, instead it now usesverify_simple
. Only schnorrkel 0.8+ signatures will now pass verification. This is a follow-up of the 0.1 signing support that was dropped in a previous version. - Rework schnorrkel signatures test vectors based on the above change (Rust, WASM and ASM.js tests)
- Rust nightly pinned to last-known-working 2020-02-17 on CI (compiler issues, should to be reverted in a future release)
- No functionality changes from 0.20.1. The interfaces here are stable in the current iteration.
- Pull in schnorrkel 0.8.5 for full Substrate 2.x compatibility
- No functionality changes at all, everything done is "under the hood" to give the codebase better maintainability
- Added an asm.js fallback which is active for React Native via the
"react-native"
entry inpackage.json
. Ensure that you run the build step with theNODE_OPTIONS=--max_old_space_size=8192
flags, since the asm.js bundle is large. (For RN the full command would therefore beNODE_OPTIONS=--max_old_space_size=8192 npm start
)
- Remove deprecated
@chainx-v2/wasm-schnorrkel
&@chainx-v2/wasm-dalek-ed25519
source (all combined in@chainx-v2/wasm-crypto
, was kept for historical purposes) - Security dependency bumps
- Updated Rust
hex-literal
for recent versions of the compiler (used in tests only)
- Security dependency bumps
- w3f/schnorrkel updated to 0.1.1 as per substrate
- Added known subkey signature test (Rust & JS)
- Dependency bumps
- Pull ed25519 & sr25519 into
@chainx-v2/wasm-crypto
as well (smaller final size) - Disable build/publish of
wasm-dalek-ed25519
&wasm-schnorrkel
- Improve error messaging, instead of
__wasm_malloc of null
- Fix build scripts to properly attach errors in the log (dropped in 0.6.1)
- Log init errors for both non-WebAssembly usage as well as WebAssembly errors
- Add password argument to bip39ToSeed
- Add bip39ToSeed
- Add wasm-dalek-ed25519 for all used crypto there
- Add keccak256
- Try secp256k1 (bloating code, not used atm)
- Add basic crypto functions, creation of wasm-crypto package
- blake2, bip39, sha2, xxhash
- Initial release