Initial dract of the common structs

This commit is contained in:
a_bennassar
2020-07-24 13:04:17 +02:00
parent ecf731982e
commit b9936f8564
16 changed files with 310 additions and 5 deletions

15
common/l1tx.go Normal file
View File

@@ -0,0 +1,15 @@
package common
import "math/big"
// L1Tx is a struct that represents an already forged L1 tx
// WARNING: this struct is very unclear and a complete guess
type L1Tx struct {
Tx
Ax *big.Int // Ax is the x coordinate of the BabyJubJub curve point
Ay *big.Int // Ay is the y coordinate of the BabyJubJub curve point
LoadAmount *big.Int // amount transfered from L1 -> L2
Mined bool
BlockNum uint64
ToForgeL1TxsNumber uint32
}