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

pub fn create<T: 'static>(
    client: &Client<T>,
    value: &[u8],
    encryption_key: Option<Key>
) -> Box<CoreFuture<ImmutableData>>

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.