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

pub async fn create(
    client: &'_ impl Client + 'static,
    value: &'_ [u8],
    published: bool,
    encryption_key: Option<Key>
) -> Result<Data, CoreError>

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.