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.

20 lines
532 B

  1. package common
  2. import (
  3. "math/big"
  4. eth "github.com/ethereum/go-ethereum/common"
  5. "github.com/iden3/go-iden3-crypto/babyjub"
  6. )
  7. // L1Tx is a struct that represents an already forged L1 tx
  8. // WARNING: this struct is very unclear and a complete guess
  9. type L1Tx struct {
  10. Tx
  11. PublicKey babyjub.PublicKey
  12. LoadAmount *big.Int // amount transfered from L1 -> L2
  13. EthBlockNum uint64
  14. EthTxHash eth.Hash
  15. Position int // Position among all the L1Txs in that batch
  16. ToForgeL1TxsNumber uint32
  17. }