Skip to content

Create example apps to encode and decode interactively ur types [ZER-511]#3

Merged
mdasilva4 merged 5 commits into
mainfrom
feat/ZER-511-examples
Oct 27, 2025
Merged

Create example apps to encode and decode interactively ur types [ZER-511]#3
mdasilva4 merged 5 commits into
mainfrom
feat/ZER-511-examples

Conversation

@mdasilva4
Copy link
Copy Markdown
Contributor

Two interactive apps are provided to help explore and test the encoding and decoding of UR types:

  • decode_ur_interactive: An interactive decoder that takes a full UR string (e.g. ur:eth-sign-request/...) as input and displays its decoded fields.
  • encode_ur_interactive: An interactive encoder that prompts you to enter data step-by-step to build and encode supported UR types.

@mdasilva4 mdasilva4 self-assigned this Oct 21, 2025
@linear
Copy link
Copy Markdown

linear Bot commented Oct 21, 2025

ZER-511 UR registry - Create example application

Description

Show how to use the UR registry library


Definition of done

  • Create an application taking as input a UR type and providing as outputs the decoded fields
  • Build example application and provide building instructions

@mdasilva4 mdasilva4 force-pushed the feat/ZER-511-examples branch from cc0e4e9 to aa8bf51 Compare October 21, 2025 14:45
Copy link
Copy Markdown

@Maher4Ever Maher4Ever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Nice usage of modern C++, especially the usage of std::visitwith std::variant.

Comment thread examples/demo_urs.h Outdated
Comment thread examples/display_ur_fields.cpp Outdated
@mdasilva4 mdasilva4 enabled auto-merge October 27, 2025 14:35
@mdasilva4 mdasilva4 merged commit fddf96b into main Oct 27, 2025
1 check passed
@mdasilva4 mdasilva4 deleted the feat/ZER-511-examples branch October 27, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants