change abi example, add uint comment
This commit is contained in:
parent
ec439a6b13
commit
6f6a8a64f1
3 changed files with 11 additions and 10 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -2269,7 +2269,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_cli"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"assert_cli",
|
||||
"bincode",
|
||||
|
@ -2294,7 +2294,7 @@ version = "0.1.0"
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_core"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
dependencies = [
|
||||
"ark-bls12-377",
|
||||
"ark-bn254",
|
||||
|
@ -2335,7 +2335,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_core_test"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"zokrates_test",
|
||||
"zokrates_test_derive",
|
||||
|
@ -2381,7 +2381,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_parser"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"glob 0.2.11",
|
||||
"pest",
|
||||
|
@ -2390,7 +2390,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_pest_ast"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"from-pest",
|
||||
"glob 0.2.11",
|
||||
|
@ -2402,7 +2402,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zokrates_stdlib"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"fs_extra",
|
||||
"zokrates_test",
|
||||
|
|
|
@ -26,7 +26,7 @@ In this example, the ABI specification is:
|
|||
"members":[
|
||||
{
|
||||
"name":"a",
|
||||
"type":"field"
|
||||
"type":"u8"
|
||||
},
|
||||
{
|
||||
"name":"b",
|
||||
|
@ -75,7 +75,7 @@ When executing a program, arguments can be passed as a JSON object of the follow
|
|||
```json
|
||||
[
|
||||
{
|
||||
"a":"42",
|
||||
"a":"0x2a",
|
||||
"b":{
|
||||
"a":"42"
|
||||
}
|
||||
|
@ -89,5 +89,6 @@ When executing a program, arguments can be passed as a JSON object of the follow
|
|||
```
|
||||
|
||||
Note the following:
|
||||
- Field elements are passed as JSON strings in order to support arbitrary large numbers.
|
||||
- Field elements are passed as JSON strings in order to support arbitrary large numbers
|
||||
- Unsigned integers are passed as JSON strings containing their hexadecimal representation
|
||||
- Structs are passed as JSON objects, ignoring the struct name
|
|
@ -3,7 +3,7 @@ struct Bar {
|
|||
}
|
||||
|
||||
struct Foo {
|
||||
field a
|
||||
u8 a
|
||||
Bar b
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue