mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-03-03 17:40:48 +00:00
Formatting
This commit is contained in:
parent
33614ee218
commit
862ea56e8b
@ -9,14 +9,14 @@ const PUBLIC_INPUT_FILE_NAME = "example-proof/public.json"
|
|||||||
function G1ToStruct(point) {
|
function G1ToStruct(point) {
|
||||||
return {
|
return {
|
||||||
x: point[0],
|
x: point[0],
|
||||||
y: point[1]
|
y: point[1],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function G2ToStruct(point) {
|
function G2ToStruct(point) {
|
||||||
return {
|
return {
|
||||||
x: [ point[0][1], point[0][0] ],
|
x: [point[0][1], point[0][0]],
|
||||||
y: [ point[1][1], point[1][0] ]
|
y: [point[1][1], point[1][0]],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,9 +25,9 @@ function loadProof(name) {
|
|||||||
fs.readFileSync(`${BASE_PATH}/${name}/${PROOF_FILE_NAME}`)
|
fs.readFileSync(`${BASE_PATH}/${name}/${PROOF_FILE_NAME}`)
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
a: G1ToStruct(proof['pi_a']),
|
a: G1ToStruct(proof["pi_a"]),
|
||||||
b: G2ToStruct(proof['pi_b']),
|
b: G2ToStruct(proof["pi_b"]),
|
||||||
c: G1ToStruct(proof['pi_c'])
|
c: G1ToStruct(proof["pi_c"]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user