hdwallet_servicex 0.1.21
hdwallet_servicex: ^0.1.21 copied to clipboard
A Flutter plugin for HD wallet services with multi-chain support including Bitcoin, Ethereum, Solana, Filecoin, and more. Built with Rust for high performance and security.
hdwallet_servicex #
A Flutter plugin for HD (Hierarchical Deterministic) wallet services with multi-chain support. Built with Rust for high performance and security.
Features #
- 🔐 HD wallet creation and management
- 🌐 Multi-chain support: Bitcoin, Ethereum, Solana, Filecoin, Substrate, Tron, CKB, Tezos, Aptos, Sui, Starknet, and more
- ⚡ High performance Rust-based cryptographic operations
- 🔒 Secure key management via FFI
- 📱 Support for Android and iOS platforms
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
hdwallet_servicex: ^0.1.20
Then run:
flutter pub get
Platform Requirements #
Android #
- Minimum SDK: 21
- Supported architectures: arm64-v8a, armeabi-v7a, x86, x86_64
iOS #
- Minimum iOS version: 11.0
- Supported architectures: arm64 (real devices)
Setup and Tools #
- Add Rust build targets
For Android
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
For iOS
For real devices (required):
rustup target add aarch64-apple-ios x86_64-apple-ios
For simulator (optional, Apple Silicon Macs):
rustup target add aarch64-apple-ios-sim
Note: x86_64 simulator support is limited due to dependency constraints.
- Cargo Plugins
cargo install --no-default-features --force cargo-make
we also use dart-bindgen which requires LLVM/Clang. Install LLVM (10+) in the following way:
ubuntu/linux
- Install libclangdev -
sudo apt-get install libclang-dev.
Windows
- Install Visual Studio with C++ development support.
- Install LLVM or
winget install -e --id LLVM.LLVM.
MacOS
- Install Xcode.
- Install LLVM -
brew install llvm.
Build and Test #
In the Root of the project simply run:
cd native
export LIBCLANG_PATH=/opt/homebrew/opt/llvm/lib
export DYLD_LIBRARY_PATH=/opt/homebrew/opt/llvm/lib
cargo make --profile release
flutter pub publish
Update tcx
cargo update -p tcx
Generate protobuf type #
Install protoc Download here
dart pub global activate protoc_plugin
protoc --dart_out=./gen *.proto