You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
498 B

  1. package common
  2. import (
  3. "math/big"
  4. eth "github.com/ethereum/go-ethereum/common"
  5. "github.com/iden3/go-iden3-crypto/babyjub"
  6. )
  7. // Account is a struct that gives information of the holdings of an address for a specific token
  8. type Account struct {
  9. EthAddr eth.Address
  10. TokenID TokenID // effective 32 bits
  11. Idx uint32 // bits = SMT levels (SMT levels needs to be decided)
  12. Nonce uint64 // effective 48 bits
  13. Balance *big.Int // Up to 192 bits
  14. PublicKey babyjub.PublicKey
  15. }