Function to_string_with_key

Source
pub fn to_string_with_key<T>(value: &T, key: &str) -> Result<String>
where T: Serialize,
Expand description

Attempts to serialize some input to 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