Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-340

improve error message for wrong verkey length

    XMLWordPrintable

Details

    • Task
    • Status: Complete
    • Medium
    • Resolution: Done
    • None
    • None
    • None
    • Ev-Node 19.21

    Description

      Currently, when our input validation reports an error about an incorrect length of a verkey, it uses awkward and confusing wording (though its content is correct).

      Steps to Validate:
      1. Add new identifier.
      2. Login as Trustee.
      3. Send NYM to added identifier with "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" verkey.

      Actual Results:
      Error: client request invalid: InvalidClientRequest('validation error: b58 decoded value length 33 should be one of 32).

       

      Preferred wording:

      Error: client request invalid: InvalidClientRequest('validation error: b58 decoded value length = 33, but should be 32.

      Note that I am asking that we be smart enough that if the acceptable values is only one item long ("should be one of 32"), we should change the verbiage to be simply "should be 32".

      Attachments

        Activity

          People

            Unassigned Unassigned
            danielhardman Daniel Hardman
            Alexander Shcherbakov, Daniel Hardman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: