Browse Source

js-friendly string method

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

+ 7
- 0
src/lib.rs

@ -289,6 +289,13 @@ impl Point {
lhs.eq(&rhs) lhs.eq(&rhs)
} }
pub fn from_xy_strings(x: String, y: String) -> Point {
Point {
x: Fr::from_str(&x).unwrap(),
y: Fr::from_str(&y).unwrap()
}
}
} }
pub fn test_bit(b: &[u8], i: usize) -> bool { pub fn test_bit(b: &[u8], i: usize) -> bool {

Loading…
Cancel
Save