[][src]Module safe_app::immutable_data

Utilities for handling ImmutableData.

Functions

create

Create and obtain immutable data out of the given raw bytes. This will encrypt the right content if the keys are provided and will ensure the maximum immutable data chunk size is respected.

extract_value

Get the raw bytes from ImmutableData created via the create function in this module.

gen_data_map

Create and obtain immutable data out of the given raw bytes. This will encrypt the right content if the keys are provided and will ensure the maximum immutable data chunk size is respected. The DataMap is generated but the chunks are not uploaded to the network.

get_value

Get immutable data from the network and extract its value, decrypting it in the process (if keys provided). This combines get_idata in Client and extract_value in this module into one function.