pub fn write_key_to_vec(key: &Key) -> Result<Vec<u8>, KeyBinaryError>
Serializes a KEY index to bytes.
Every non-I/O failure write_key describes. The Vec target has no I/O to fail at.
write_key
Vec