Commit 5487832
committed
Complete FFI bindings and CI integration for native crypto
FFI Bindings Implementation:
- Complete Dart FFI bindings for Rust crypto library
- Add ffi package dependency
- Implement proper memory management with malloc/calloc
- Full FFI function signatures for all crypto operations:
* fuego_generate_keys
* fuego_private_to_public
* fuego_generate_address
* fuego_validate_address
* fuego_key_to_mnemonic
* fuego_mnemonic_to_key
* fuego_validate_mnemonic
- Safe pointer handling with proper cleanup
CI Workflow Updates:
- Add Rust toolchain setup for all platforms
- Build Rust library for:
* macOS (x86_64 and arm64)
* Windows (x86_64)
* Linux (x86_64)
- Add Rust cache for faster builds
- Copy built libraries to assets/bin/
- Platform-specific library names
Architecture:
- Native crypto operations via FFI when available
- Automatic fallback to RPC when native unavailable
- Memory-safe pointer management
- Zero-copy operations where possible
Ready for testing and UI integration1 parent b417430 commit 5487832
File tree
3 files changed
+202
-116
lines changed- .github/workflows
- native/crypto/bindings
3 files changed
+202
-116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
125 | 141 | | |
126 | 142 | | |
127 | 143 | | |
| |||
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
188 | 220 | | |
189 | 221 | | |
190 | 222 | | |
| |||
0 commit comments