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
827 B

  1. package common
  2. import "errors"
  3. // ErrNotInFF is used when the *big.Int does not fit inside the Finite Field
  4. var ErrNotInFF = errors.New("BigInt not inside the Finite Field")
  5. // ErrNumOverflow is used when a given value overflows the maximum capacity of the parameter
  6. var ErrNumOverflow = errors.New("Value overflows the type")
  7. // ErrNonceOverflow is used when a given nonce overflows the maximum capacity of the Nonce (2**40-1)
  8. var ErrNonceOverflow = errors.New("Nonce overflow, max value: 2**40 -1")
  9. // ErrIdxOverflow is used when a given nonce overflows the maximum capacity of the Idx (2**48-1)
  10. var ErrIdxOverflow = errors.New("Idx overflow, max value: 2**48 -1")
  11. // ErrBatchQueueEmpty is used when the coordinator.BatchQueue.Pop() is called and has no elements
  12. var ErrBatchQueueEmpty = errors.New("BatchQueue empty")