mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 03:46:52 +01:00
Add StateDB ZKInputs generation for L1 & L2 Txs
This commit is contained in:
17
db/statedb/utils.go
Normal file
17
db/statedb/utils.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user