Add StateDB ZKInputs generation for L1 & L2 Txs

This commit is contained in:
arnaucube
2020-09-09 14:40:55 +02:00
parent a7fe80f150
commit aa0bde61d2
7 changed files with 251 additions and 26 deletions

17
db/statedb/utils.go Normal file
View File

@@ -0,0 +1,17 @@
package statedb
import (
ethCommon "github.com/ethereum/go-ethereum/common"
"github.com/hermeznetwork/hermez-node/common"
"github.com/iden3/go-iden3-crypto/babyjub"
)
// TODO
func (s *StateDB) getIdxByEthAddr(addr ethCommon.Address) common.Idx {
return common.Idx(0)
}
// TODO
func (s *StateDB) getIdxByBJJ(pk *babyjub.PublicKey) common.Idx {
return common.Idx(0)
}