You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.2 KiB

  1. package common
  2. import (
  3. "math/big"
  4. )
  5. // ZKInputs represents the inputs that will be used to generate the zkSNARK
  6. // proof
  7. type ZKInputs struct {
  8. InitialIdx uint64
  9. OldStRoot Hash
  10. FeePlanCoins *big.Int
  11. FeeTotals *big.Int
  12. PubEthAddress *big.Int
  13. ImStateRoot []Hash
  14. ImExitRoot []Hash
  15. ImOnChainHash []Hash
  16. ImOnChain []*big.Int
  17. TxData []*big.Int
  18. FromIdx []uint64
  19. ToIdX []uint64 //nolint:golint
  20. ToAx []*big.Int
  21. ToAy []*big.Int
  22. ToEthAddr []*big.Int
  23. FromEthAddr []*big.Int
  24. FromAx []*big.Int
  25. FromAy []*big.Int
  26. RqTxData []*big.Int
  27. LoadAmount []*big.Int
  28. S []*big.Int
  29. R8x []*big.Int
  30. R8y []*big.Int
  31. Ax1 []*big.Int
  32. Ay1 []*big.Int
  33. Amount1 []*big.Int
  34. Nonce1 []*big.Int
  35. EthAddr1 []*big.Int
  36. Siblings1 [][]*big.Int
  37. IsOld01 []*big.Int `json:"isOld0_1"`
  38. OldKey1 []*big.Int
  39. OldValue1 []*big.Int
  40. Ax2 []*big.Int
  41. Ay2 []*big.Int
  42. Amount2 []*big.Int
  43. Nonce2 []*big.Int
  44. EthAddr2 []*big.Int
  45. Siblings2 [][]*big.Int
  46. IsOld02 []*big.Int `json:"isOld0_2"`
  47. OldKey2 []*big.Int
  48. OldValue2 []*big.Int
  49. }
  50. // CallDataForge TBD
  51. type CallDataForge struct {
  52. // TBD
  53. }