Skip to content

Implement hex decoders for ID types #3452

Description

@PhilippGackstatter

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: 0xMiden/node#2393 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rustIssues that affect or pull requests that update Rust code

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions