arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/zk.go
common/zk.goRaw
 1package common
 2
 3import (
 4	"math/big"
 5)
 6
 7type ZKInputs struct {
 8	InitialIdx    uint64
 9	OldStRoot     Hash
10	FeePlanCoins  *big.Int
11	FeeTotals     *big.Int
12	PubEthAddress *big.Int
13
14	ImStateRoot []Hash
15	ImExitRoot  []Hash
16
17	ImOnChainHash []Hash
18	ImOnChain     []*big.Int
19	TxData        []*big.Int
20
21	FromIdx     []uint64
22	ToIdX       []uint64
23	ToAx        []*big.Int
24	ToAy        []*big.Int
25	ToEthAddr   []*big.Int
26	FromEthAddr []*big.Int
27	FromAx      []*big.Int
28	FromAy      []*big.Int
29
30	RqTxData   []*big.Int
31	LoadAmount []*big.Int
32
33	S   []*big.Int
34	R8x []*big.Int
35	R8y []*big.Int
36
37	Ax1       []*big.Int
38	Ay1       []*big.Int
39	Amount1   []*big.Int
40	Nonce1    []*big.Int
41	EthAddr1  []*big.Int
42	Siblings1 [][]*big.Int
43	IsOld01   []*big.Int `json:"isOld0_1"`
44	OldKey1   []*big.Int
45	OldValue1 []*big.Int
46
47	Ax2       []*big.Int
48	Ay2       []*big.Int
49	Amount2   []*big.Int
50	Nonce2    []*big.Int
51	EthAddr2  []*big.Int
52	Siblings2 [][]*big.Int
53	IsOld02   []*big.Int `json:"isOld0_2"`
54	OldKey2   []*big.Int
55	OldValue2 []*big.Int
56}
57
58type CallDataForge struct {
59	// TBD
60}
61
62type ExitTreeLeaf struct {
63	// TBD
64}