0xMiden / 0xMiden/protocol

Implement hex decoders for ID types

Open
#3,452 0 comments 0 reactions 0 assignees View on GitHub
rust
Dominant language
Rust
Stars
132
Forks
167
Avg merge
1d 23h
Merged PRs (30d)
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.