This is documentation for how to use the wallet-core library from any programming language of your preference.
This wallet-core is used in a js library for the web and a rust library (rusk-wallet). They are both examples on how to use this library.
This wiki documents how to sign transactions or extend your own code to talk to the blockchain.
NOTE: When calling any ffi functions in the library, refer to the latest documentation of the type of the arguments of the function, every function takes a json argument.
Types are defined in assets/schema.json and a types.rs is generated with the documented types.
Creating a transaction
The transaction creation happens with the execute function in the wallet-core
this gives out the bytes for the unproven transaction which we’ll learn how to prove later on…
This gives out the bytes of the unproven transaction, before proving that, lets call more complicated method like stake.
We call get_stct_proof to get the proof we needed to embed in the transaction
Now we need to obtain the stct proof from the prover, to do that we just
Then we get the call data required for this transaction since it’s a different contract on the blockchain