Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: serde json encode [u8; N] as hex string #119

Assignees

Comments

@leighmcculloch
Copy link
Member

What

Change the serde json encoding of [u8; N] as a hex string in the Rust generated code.

Why

It is less common than encoding binary as base64, but the vast majority of our fixed type u8's in the Stellar XDR represent small values that we often share in hex format, so this puts the encoding of XDR closer to the native form we would typically discuss the values.

If this presents significant challenges then I think simply encoding as base64, like #118, would also be okay.

Follow up to #112 #117

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