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

Add serialization method for StateSignatureTransaction in hedera.app #17073

Open
Tracked by #16678
IvanKavaldzhiev opened this issue Dec 16, 2024 · 0 comments
Open
Tracked by #16678
Labels
Hedera App Issues related to Hedera App and Hedera App SPI Platform Tickets pertaining to the platform

Comments

@IvanKavaldzhiev
Copy link
Collaborator

IvanKavaldzhiev commented Dec 16, 2024

Problem

Since the platform will pass all transaction types as Bytes, the StateSignatureTransactions which the platform creates itself should have a way to be serialized by a specific logic from the consumer of these transactions (in this case hedera.app). This method will be invoked by the platform to get its StateSignatureTransactions serialized to Bytes and then send them back to hedera.app as Bytes inside a ConsensusEvent. The consumer knows what type it uses as a container for these Bytes and can easily deserialize them back to the proper wrapper type.

Solution

Enhance hedera.app with a static method that gets StateSignatureTransaction pbj type as an input, puts it into a new Transaction and returns its serialization form as Bytes pbj type. The exact business logic of the serialization from StateSignatureTransaction to Bytes should be hidden from the platform and be visible only for hedera.app.

Alternatives

No response

@IvanKavaldzhiev IvanKavaldzhiev added the Platform Tickets pertaining to the platform label Dec 16, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Services Team Dec 16, 2024
@IvanKavaldzhiev IvanKavaldzhiev added the Hedera App Issues related to Hedera App and Hedera App SPI label Dec 16, 2024
@IvanKavaldzhiev IvanKavaldzhiev changed the title Add serialization method for StateSignatureTransaction in SwirldState Add serialization method for StateSignatureTransaction in hedera.app Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hedera App Issues related to Hedera App and Hedera App SPI Platform Tickets pertaining to the platform
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant