cypherstack / flutter_libsparkmobile

firo-org/sparkmobile for cross-platform Flutter applications.
MIT License
0 stars 2 forks source link

Transparent spends #5

Closed sneurlax closed 10 months ago

sneurlax commented 11 months ago

createSparkSpendTransaction just needs wrapping at this point

The CSparkMintMeta is a sticking point at the moment due to the need to serialize a spark::Coin to FFI, which apparently isn't possible using the same method as the other toFFI/fromFFI functions we use for other structs (can't get nonce Scalar k from K or other available properties), however it appears there are serialization/deserialization methods available for a Coin, so I need to use those (at least insofar as for CSparkMintMeta's toFFI).

Then we need to wrap spark::CoverSetData and CAmount (maybe).