When decoding an input string for a RepoId, the base was never checked.
This change ensures that the base is checked and will error otherwise.
To allow for future base codes, the change introduces a sanctioned set
of base codes, which only contains Base58Btc for now.
Tests are added to ensure that parsing is correct and includes a valid multibase code ‘Z’, which is not the expected ‘z’.
When decoding an input string for a RepoId, the base was never checked.
This change ensures that the base is checked and will error otherwise.
To allow for future base codes, the change introduces a sanctioned set
of base codes, which only contains Base58Btc for now.
Tests are added to ensure that parsing is correct and includes a valid multibase code ‘Z’, which is not the expected ‘z’.
Rebase