pub fn write_scalar<W>(scalar: &Scalar, w: &mut W) -> Result<(), Error>where W: Write,
Write a scalar.