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