Expand description

Client API for interaction with this smart contract This module implements the client-side API for this contract’s interaction. What we basically do here is implement an API that creates the necessary structures and is able to export them to create a DarkFi transaction object that can be broadcasted to the network when we want to make a payment with some coins in our wallet.

Note that this API does not involve any wallet interaction, but only takes the necessary objects provided by the caller. This is intentional, so we are able to abstract away any wallet interfaces to client implementations.

Modules§

Structs§

  • MoneyNote holds the inner attributes of a Coin It does not store the public key since it’s encrypted for that key, and so is not needed to infer the coin attributes. All other coin attributes must be present.
  • OwnCoin is a representation of Coin with its respective metadata.

Functions§