|
@ -523,7 +523,7 @@ pub fn decompress_signature(b: &[u8; 64]) -> Result { |
|
|
Result::Ok(res) => Ok(Signature { r_b8: res, s: s.to_string() }),
|
|
|
Result::Ok(res) => Ok(Signature { r_b8: res, s: s.to_string() }),
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
#[derive(Debug, Serialize)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
|
pub struct ElGamalEncryption {
|
|
|
pub struct ElGamalEncryption {
|
|
|
pub c1: Point,
|
|
|
pub c1: Point,
|
|
|
pub c2: Point
|
|
|
pub c2: Point
|
|
|