'differences between the wo kinds of Cosmos sequence errors

i'd like to know the difference between the below two kinds of errors:

  1. account sequence mismatch, expected N+1, got N: incorrect account sequence
  2. signature verification failed; please verify account number (X), sequence (Y) and chain-id (Z): unauthorized

for #2, assume that the account number and chain-id are correctly provided.

From my experience, #1 means the provided sequence is smaller than expected. while #2 means the provided sequence is larger than expected.

can we say so?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source