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.

64 lines
1.1 KiB

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