jcli: strip trailing newlines when reading the shares file
@@ -50,6 +50,7 @@ impl TallyDecryptWithAllShares {
for _ in 0..self.threshold {
let mut buff = String::new();
shares_file.read_line(&mut buff)?;
+ let buff = buff.trim_end();
shares.push(
chain_vote::TallyDecryptShare::from_bytes(&base64::decode(buff)?)
.ok_or(Error::DecryptionShareRead)?,
