[][src]Function safe_app::immutable_data::gen_data_map

pub fn gen_data_map(
    client: &impl Client,
    value: &[u8],
    published: bool,
    encryption_key: Option<Key>
) -> Box<dyn Future<Error = CoreError, Item = Data> + 'static>

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.