Module safe_core::immutable_data [] [src]

Utilities for handling ImmutableData

Functions

create

Create and obtain immutable data out of the given raw bytes. The API 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 create() function in this module.

get_value

Get immutable data from the network and extract its value, decrypting it in the process (if keys provided). This is a convenience function combining get and extract_value into one function.