@dilithia/sdk-native
v0.3.0
Published
Native Node.js crypto bridge for the Dilithia TypeScript SDK
Downloads
4,338
Readme
TypeScript Native Crypto Bridge
This package is the planned Rust-backed Node bridge for the TypeScript SDK.
Purpose
Expose the same crypto semantics used by the browser wallet, but for Node.js runtimes.
The bridge should align with:
dilithia-core- the browser wallet WASM wrapper
docs/CRYPTO_ADAPTER_SURFACE.md
Planned Runtime
- Node.js
napi-rs
Scope
The bridge should expose:
- mnemonic generation and validation
- HD wallet recovery
- indexed account derivation
- wallet-file recovery
- address derivation from public key
- sign / verify helpers
Status
Wired against dilithia-core.
Implemented:
- mnemonic generation and validation
- HD root-account recovery
- indexed HD account derivation
- HD wallet-file creation
- wallet-file recovery for HD and non-HD files
- address derivation from public key
- sign / verify
Packaging
This bridge is packaged as a standalone npm package:
package.jsonindex.jsloader for the generated.nodebinaryindex.d.tssurface for TS consumers
Typical local flow:
cd typescript/native
npm install
npm run build:nativeDocker build flow:
./scripts/build-typescript-native-docker.sh