plutus icon indicating copy to clipboard operation
plutus copied to clipboard

On-chain `dataHash :: BuiltinData -> BuiltinByteString`

Open L-as opened this issue 3 years ago • 1 comments

Describe the feature you'd like

I assume this is already implementable if you do the serialization on-chain, but it would be wasteful compared to supporting it as a built-in function.

Describe alternatives you've considered

Is it perhaps possible to get the undeserialized datum for an input on-chain? That would already cover some of the potential use cases.

Additional context / screenshots

Some times you want to be able to compute the hash of a transformation of some data (e.g. a datum), without storing the transformation in the transaction, in order to save space.

L-as avatar Oct 27 '21 21:10 L-as

Thanks for the issue!

Yeah, this is a desired feature but not implemented yet.

ak3n avatar Nov 01 '21 07:11 ak3n