Browse Source

serialization of signatures

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

+ 2
- 2
src/lib.rs

@ -2,7 +2,7 @@
// For LICENSE check https://github.com/arnaucube/babyjubjub-rs
use ff::*;
use serde::{Serialize, Deserialize, ser::SerializeSeq};
use serde::{Serialize, ser::SerializeSeq};
use poseidon_rs::Poseidon;
pub type Fr = poseidon_rs::Fr; // alias
@ -260,7 +260,7 @@ pub fn blh(b: &[u8]) -> Vec {
return digest[..].to_vec();
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize)]
pub struct Signature {
pub r_b8: Point,
pub s: String,

Loading…
Cancel
Save