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

rofl-appd: Serialize byte data as hex #2140

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

kostko
Copy link
Member

@kostko kostko commented Jan 23, 2025

No description provided.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for oasisprotocol-oasis-sdk canceled.

Name Link
🔨 Latest commit 31815df
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-sdk/deploys/67923117a7735600089da15b

#[derive(Clone, Default, serde::Serialize, zeroize::Zeroize, zeroize::ZeroizeOnDrop)]
pub struct GenerateResponse {
/// Generated key.
#[serde_as(as = "serde_with::hex::Hex")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why, what do we gain with this change?

Copy link
Member Author

@kostko kostko Jan 23, 2025

Choose a reason for hiding this comment

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

Well, previously it used a non-standard encoding into arrays, e.g. [123, 111, 64, ...]. Hex or base64 is much more standard when used in JSON.

@kostko kostko enabled auto-merge January 23, 2025 13:55
@kostko kostko merged commit 84a1be4 into main Jan 23, 2025
26 checks passed
@kostko kostko deleted the kostko/fix/rofl-appd-hex-keys branch January 23, 2025 18:55
github-actions bot added a commit that referenced this pull request Jan 23, 2025
…ostko/fix/rofl-appd-hex-keys

rofl-appd: Serialize byte data as hex 84a1be4
github-actions bot added a commit to OasisUnofficial/oasis-sdk that referenced this pull request Jan 23, 2025
…sisprotocol/kostko/fix/rofl-appd-hex-keys

rofl-appd: Serialize byte data as hex 84a1be4
github-actions bot added a commit to OasisUnofficial/oasis-sdk that referenced this pull request Jan 23, 2025
…oasisprotocol/kostko/fix/rofl-appd-hex-keys

rofl-appd: Serialize byte data as hex 84a1be4
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