1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

change abi example, add uint comment

This commit is contained in:
schaeff 2021-05-05 11:24:54 +02:00
parent ec439a6b13
commit 6f6a8a64f1
3 changed files with 11 additions and 10 deletions

12
Cargo.lock generated
View file

@ -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",

View file

@ -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

View file

@ -3,7 +3,7 @@ struct Bar {
}
struct Foo {
field a
u8 a
Bar b
}