0xMiden / 0xMiden/protocol

Implement hex decoders for ID types

Offen
#3,452 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
rust
Vorherrschende Sprache
Rust
Sterne
132
Forks
167
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
110

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.