Browse Source

added deserialization for the ElGamalEncryption Struct

pull/8/head
Nanak Nihal Singh Khalsa 1 year ago
parent
commit
1557322caf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lib.rs

+ 1
- 1
src/lib.rs

@ -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

Loading…
Cancel
Save