hermez-node/common/account.go
common/account.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// Account is a struct that gives information of the holdings of an address for a specific token
11type Account struct {
12 EthAddr eth.Address
13 TokenID TokenID // effective 32 bits
14 Idx uint32 // bits = SMT levels (SMT levels needs to be decided)
15 Nonce uint64 // effective 48 bits
16 Balance *big.Int // Up to 192 bits
17 Signature babyjub.PublicKey
18}