pub fn write_string_optional(
writer: &mut impl Write,
s: &str,
) -> Result<(), WalletError>Expand description
Write a string that uses the full varint negative-one sentinel for empty. This matches Go SDK’s WriteOptionalString behavior (empty string -> NegativeOne).