0xMiden / 0xMiden/protocol

Implement hex decoders for ID types

Aperta
#3,452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
rust
Lingua principale
Rust
Stelle
132
Fork
167
Merge medio
1g 23h
PR unite (30g)
110

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.