Struct den::SignatureBuilder

source ·
pub struct SignatureBuilder { /* private fields */ }
Expand description

Builder of a Signature. Created using constructors on Signature (e.g. Signature::with_algorithm);

You Self::write data and then Self::finish to get a Signature.

Implementations§

source§

impl SignatureBuilder

source

pub fn parallel_write(&mut self, data: &[u8], wp: &WorkerPool)

Appends data to the hasher, hashing in parallel. Useful when data is large AND when block_size is > 8*1024.

This can be called multiple times to write the resource bit-by-bit.

source

pub fn parallel_write_with_options( &mut self, data: &[u8], wp: &WorkerPool, data_size_threshold: usize, block_size_threshold: usize )

source§

impl SignatureBuilder

<