[][src]Function safe_core::immutable_data::create

pub fn create(
    client: &impl Client,
    value: &[u8],
    published: bool,
    encryption_key: Option<Key>
) -> Box<CoreFuture<IData>>

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.