[][src]Function safe_app::immutable_data::create

pub fn create(
    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.