Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
core: guard on expected multibase
Merged fintohaps opened 2 months ago

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’.

fintohaps opened with revision 02793860 on base 82ad52b1 +99 -163 2 months ago

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’.

lorenz pushed revision 2 a6e9f0b9 on base ebf7d876 +98 -163 2 months ago

Rebase

lorenz merged revision a6e9f0b9 at aeba81f4 2 months ago