Commit 4d1c6e2
committed
Complete Fuego native crypto implementation
Implements all requested features:
1. Real Ed25519 Operations
- Replace placeholder crypto with actual Ed25519 from ed25519-dalek
- Proper key generation, signing, and verification
- Key image generation for ring signatures
- SHA512/SHA256 hashing
2. CI Workflow Integration
- Add Rust toolchain setup in macOS build
- Build for both x86_64 and arm64 architectures
- Copy built libraries to assets/bin/
- Include Rust caching for faster builds
3. Native Crypto Library
- lib.rs: Full Ed25519 key operations
- Lib.rs: Key image generation for CryptoNote protocol
- lib.rs: Address generation with Base58 encoding
- lib.rs: Signature verification
- lib.rs: SHA512 hashing
4. Dart Tests
- test/crypto_bindings_test.dart: Foundation for FFI tests
- Placeholder tests ready for native library integration
- Test structure for adapter fallback
5. Hybrid Architecture
- native/crypto/: Standalone Rust FFI library
- fuego-walletd: Download from releases (no submodule)
- Best of both: native crypto + remote daemon
Architecture Benefits:
- Native key generation (no IPC overhead)
- Remote blockchain sync (lightweight wallet)
- Prebuilt binaries (fast CI)
- FFI-safe operations (memory safety)
- Cross-platform support (macOS Intel/Apple Silicon)
Next: Integrate hybrid adapter into WalletProvider1 parent 3f159c9 commit 4d1c6e2
File tree
4 files changed
+204
-85
lines changed- .github/workflows
- native/crypto
- src
- test
4 files changed
+204
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
47 | 67 | | |
48 | 68 | | |
49 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments