0

I have a good understanding of the role of Datums in Cardano's Extended UTXO model, including their use in representing the state of a smart contract. However, I'm seeking further clarification on the different types of Datums that can be used, such as inline and hashed Datums. Could someone elaborate on the various types, their specific uses, and the considerations for choosing between them in the development of smart contracts?

2 Answers 2

1

The Inline Datum was introduced with the Vasil Hard Fork (https://cips.cardano.org/cips/cip32/). Before this, only using a Datum Hash was possible. Using a Datum Hash is more difficult for a decentralized application, because the Datum has to be shared off-chain between all parties who are doing transactions.With Inline Datums, it becomes a lot easier, because the Datum is visible on-chain.

1

There is another point here as well, in addition to George's. The addition of "reference inputs" (https://cips.cardano.org/cips/cip31/) also means that it is possible to use datum without spending the corresponding UTxO, as was necessary before. This also expands the use-cases and makes dealing with (for example) concurrency and shared state easier.

1
  • This is also how the Oracles in Cardano are working, they publish their information in a Datum, which can be used (as a reference input) multiple times by different DApps. Jul 20, 2023 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.