monero 0.0.1 copy "monero: ^0.0.1" to clipboard
monero: ^0.0.1 copied to clipboard

Monero Dart SDK.

monero #

Setup #

Native assets #

Native assets is currently an experimental feature that is available in Flutter's master branch behind an optional Flutter config:

flutter config --enable-native-assets

See this tracking issue and this milestone for the eventual inclusion of native assets in a release.

Quick setup #

git clone git@github.com:ManyMath/monerodart
cd monerodart
git submodule update --init --recursive
dart pub get
dart --enable-experiment=native-assets run bin/monero_example.dart

and wait a moment as the native assets are built.

Development #

  • Install cbindgen: cargo install --force cbindgen.
  • To generate libxmr_bindings.h C bindings for Rust, use cbindgen in the rust directory: cbindgen --config cbindgen.toml --crate libxmr --output libxmr_bindings.h.
  • To generate libxmr_bindings_generated.dart Dart bindings for C: dart run ffigen --config ffigen.yaml.
  • If bindings are generated for a new (not previously supported/included in lib/xmrdart_base.dart) function, a wrapper function for it must be written by hand (see: generateMnemonic, generateAddress).