Implement hex decoders for ID types
Ouverte
rust
- Langage dominant
- Rust
- Étoiles
- 132
- Forks
- 167
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 110
Description
Add at least `impl FromStr for TransactionId` to decode one from a hex string. We may want to make sure all IDs that encode to a hex string have a reverse decode path.
For API consistency, we may want to consider moving all `fn from_hex` to a `FromStr` impl, or the other way around.
Context: https://github.com/0xMiden/node/pull/2393#discussion_r3676405199
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.