The goal is to pass a JSON object to the Rust code, which will build a transaction and return the serialized transaction in hex format. This is used between Mesh and the Rust code.
Instead of build transactions directly with cardano-serialization-lib
, we build the whisky
package that wraps the cardano-serialization-lib
package. Doing so, this allow us to create useful functions that can be used in the Rust code base.
Then, we create a JSON parser in Rust that can parse JSON objects and build transactions with the whisky
package.