Skip to content

feat(api): externalize deserialization#14

Merged
joshdoman merged 1 commit into
mainfrom
pre-deserialize
Oct 7, 2025
Merged

feat(api): externalize deserialization#14
joshdoman merged 1 commit into
mainfrom
pre-deserialize

Conversation

@joshdoman
Copy link
Copy Markdown
Owner

This PR externalizes deserialization. This is appropriate because the consumer of the API may want to use the Transaction type in the request payload struct, so they can benefit from the built-in deserialization.

Currently, doing so requires the consumer to needlessly serialize the transaction to use the library, just for the library to deserialize it again. Now, the library performs no deserializations, and only the Verifier may need to serialize the transaction, to pass it to the kernel.

As deserialization is no longer necessary, the DeserializationFailed error type has been removed.

@joshdoman joshdoman changed the title feat(api): externalize deserialization by using the Transaction type feat(api): externalize deserialization Oct 7, 2025
@joshdoman joshdoman merged commit c363ba7 into main Oct 7, 2025
3 checks passed
@joshdoman joshdoman deleted the pre-deserialize branch October 7, 2025 00:50
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