Function rustsync::signature [] [src]

pub fn signature<R: Read, B: AsRef<[u8]> + AsMut<[u8]>>(
    r: R,
    block: B
) -> Result<Signature, Error>

Create the "signature" of a file, essentially a content-indexed map of blocks. The first step of the protocol is to run this function on the "source" (the remote file when downloading, the local file while uploading).