We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b466af commit 203eb33Copy full SHA for 203eb33
plonk-napi/src/wrappers/mod.rs
@@ -1,2 +1,3 @@
1
pub(crate) mod field;
2
-pub(crate) mod group;
+pub(crate) mod group;
3
+pub(crate) mod wires;
plonk-napi/src/wrappers/wires.rs
@@ -0,0 +1,27 @@
+use kimchi::circuits::wires::Wire as KimchiWire;
+use napi_derive::napi;
+
4
+#[napi(object)]
5
+#[derive(Clone, Copy, Debug, Default)]
6
+pub struct NapiWire {
7
+ pub row: u32,
8
+ pub col: u32,
9
+}
10
11
+impl From<NapiWire> for KimchiWire {
12
+ fn from(value: NapiWire) -> Self {
13
+ KimchiWire {
14
+ row: value.row as usize,
15
+ col: value.col as usize,
16
+ }
17
18
19
20
+impl From<KimchiWire> for NapiWire {
21
+ fn from(value: KimchiWire) -> Self {
22
+ Self {
23
+ row: value.row as u32,
24
+ col: value.col as u32,
25
26
27
0 commit comments