errors.go 435 B

123456789101112
  1. package sign
  2. import "github.com/uozi-tech/cosy"
  3. var (
  4. e = cosy.NewErrorScope("sign")
  5. ErrTimeout = e.New(40401, "request timeout")
  6. ErrInvalidNonce = e.New(50000, "invalid nonce")
  7. ErrDecodePrivateKey = e.New(50001, "failed to decode private key")
  8. ErrInvalidSign = e.New(50002, "invalid signature")
  9. ErrEncryptedDataTooShort = e.New(50003, "encrypted data too short")
  10. )