To packages/wasm which is now being built with each run of our build pipelines and emitting type declarations and new compiled binaries embedded into the binding wrapper.
Current size of binding + wasm 393kb which is approx 1/2 the size of all three modules combined.
Has upgraded cryptographic implementations with a particular note on now using the hd-keys-curves library over hand migrated implementations for hd key derivation
Migrates packages/crypto to async implementations with scoped invocation of loadModule to lazy load the wasm module
Updates Github Action Jobs to use rust toolchains for building packages/wasm
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
How Has This Been Tested?
Tested using crypto.spec.ts and local-tests to confirm that we are compatible with current cryptographic implementations in our nodes.
Also adds tests to packages/wasm for testing of our wasm bindings directly.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
Migrates
To
packages/wasm
which is now being built with each run of our build pipelines and emitting type declarations and new compiled binaries embedded into the binding wrapper.Current size of binding + wasm
393kb
which is approx1/2
the size of all three modules combined.Has upgraded cryptographic implementations with a particular note on now using the
hd-keys-curves
library over hand migrated implementations forhd key derivation
Migrates
packages/crypto
to async implementations with scoped invocation ofloadModule
to lazy load thewasm module
Updates Github Action Jobs to use rust toolchains for building
packages/wasm
Type of change
How Has This Been Tested?
Tested using
crypto.spec.ts
andlocal-tests
to confirm that we are compatible with current cryptographic implementations in our nodes.Also adds tests to
packages/wasm
for testing of our wasm bindings directly.Checklist: