Function to_writer_with_key

Source
pub fn to_writer_with_key<W, T>(
    writer: &mut W,
    value: &T,
    key: &str,
) -> Result<()>
where W: Write, T: Serialize,
Expand description

Serialize the value into an IO stream of VDF text with a custom top level VDF key

§Errors

This will return an error if the input can’t be represented with valid VDF