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.

16 lines
491 B

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