Skip to content

Conversation

@Alrighttt
Copy link
Collaborator

Incorporates the necessary serde and encoding changes from:

SiaFoundation/core#224
SiaFoundation/core#220



Prior to this change Hash256 was represented as "h:<32 byte hex string>"

It is now represented as a plain hex string with no prefix
…providing a JSON that does not include this field, includes it as `null` or includes it as empty array
derive Display instead of manually implementing for BlockId
refactor SignatureError, PublicKeyError, KeypairError to match standard error handling pattern

remove PrivateKeyError
Prior to this change, ArbitraryData was being serialized like [0, 1, 2, 3] which walletd accepted just fine. However, walletd will itself serialize this as a base64 string. This went unnoticed until swaps with the newly added UUID inside arbitrary data field were performed.
@Alrighttt Alrighttt merged commit 018ec00 into release_candidate_1 Dec 5, 2024
@Alrighttt Alrighttt deleted the refactor/remove-serde-prefixes branch February 21, 2025 14:58
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.

2 participants