Skip to content

Commit

Permalink
Merge pull request #10 from QED-it/v1.1.0
Browse files Browse the repository at this point in the history
Version 1.1.0, 2020-06, Simplifications
  • Loading branch information
naure authored Jun 16, 2020
2 parents 0ce641a + 5e153ab commit 0315914
Show file tree
Hide file tree
Showing 24 changed files with 1,030 additions and 214 deletions.
12 changes: 12 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Version 1.1.0, 2020-06, Simplifications

Interface definition:
- *(breaking)* Renamed R1CSContraints to ConstraintSystem.
- *(breaking)* Moved r1cs_generation and witness_generation from Circuit to Command.
- Added a dedicated Command message type to help with interoperable execution.
- Added an example file in binary and JSON.

Rust:
- *(breaking)* Moved "writing" helpers to the "owned" modules.
- Added "owned" versions of all message types.
- Added a tool to convert to JSON.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ See also the [WebAssembly modules](https://github.com/QED-it/zkinterface-wasm/)
| ------------------------- | --------------------------- |
| `zkInterface.pdf` | The interface specification |
| `zkinterface.fbs` | The gadget interface definition using FlatBuffers |
| `examples/` | An example circuit in binary and JSON |
| `rust/` | Cargo package `zkinterface` |
| `rust/src/zkinterface_generated.rs` | Generated Rust code |
| `rust/src/reading.rs` | Rust helpers to read messages |
Expand Down
135 changes: 135 additions & 0 deletions examples/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"circuits": [
{
"connections": {
"variable_ids": [
1,
2,
3
],
"values": [
3,
0,
0,
0,
4,
0,
0,
0,
25,
0,
0,
0
]
},
"free_variable_id": 6,
"field_maximum": null
}
],
"constraint_systems": [
{
"constraints": [
{
"linear_combination_a": {
"variable_ids": [
1
],
"values": [
1
]
},
"linear_combination_b": {
"variable_ids": [
1
],
"values": [
1
]
},
"linear_combination_c": {
"variable_ids": [
4
],
"values": [
1
]
}
},
{
"linear_combination_a": {
"variable_ids": [
2
],
"values": [
1
]
},
"linear_combination_b": {
"variable_ids": [
2
],
"values": [
1
]
},
"linear_combination_c": {
"variable_ids": [
5
],
"values": [
1
]
}
},
{
"linear_combination_a": {
"variable_ids": [
0
],
"values": [
1
]
},
"linear_combination_b": {
"variable_ids": [
4,
5
],
"values": [
1,
1
]
},
"linear_combination_c": {
"variable_ids": [
3
],
"values": [
1
]
}
}
]
}
],
"witnesses": [
{
"assigned_variables": {
"variable_ids": [
4,
5
],
"values": [
9,
0,
0,
0,
16,
0,
0,
0
]
}
}
]
}
Binary file added examples/example.zkif
Binary file not shown.
Loading

0 comments on commit 0315914

Please sign in to comment.