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

Refactor/remove serde prefixes #9

Open
wants to merge 30 commits into
base: release_candidate_1
Choose a base branch
from

Conversation

Alrighttt
Copy link
Member

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.
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.

1 participant