hermez-node/common/accountcreationauths.go
common/accountcreationauths.goRaw
1package common
2
3import (
4 "time"
5
6 ethCommon "github.com/ethereum/go-ethereum/common"
7 "github.com/iden3/go-iden3-crypto/babyjub"
8)
9
10// AccountCreationAuth authorizations sent by users to the L2DB, to be used for account creations when necessary
11type AccountCreationAuth struct {
12 EthAddr ethCommon.Address `meddler:"eth_addr"`
13 BJJ *babyjub.PublicKey `meddler:"bjj"`
14 Signature []byte `meddler:"signature"`
15 Timestamp time.Time `meddler:"timestamp,utctime"`
16}