Skip to content

fix: Block proof request serialization#2280

Open
sergerad wants to merge 4 commits into
nextfrom
sergerad-block-proof-request-fix
Open

fix: Block proof request serialization#2280
sergerad wants to merge 4 commits into
nextfrom
sergerad-block-proof-request-fix

Conversation

@sergerad

Copy link
Copy Markdown
Collaborator

Summary

Fixes ser/de mismatch for block proving requests.

Changelog

changelog = "none"
reason    = "Internal change only."

/// serialized layout is `tx_batches`, then `block_header`, then `block_inputs`. This crate also
/// builds for `wasm32` (where `miden-node-proto`, via tonic transport / tokio net, does not
/// compile), so it cannot depend on that type and instead mirrors its layout here. Keep this in
/// sync with `BlockProofRequest`'s `Serializable` impl.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@Mirko-von-Leipzig any suggestions as to how to handle this better? Can't use BlockProofRequest from miden-node-proto because this crate needs wasm compilation

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes - we delete all this.

See #995 (comment).

cc @SantiagoPittella - could we just delete this client crate now? I think so..

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, I think we can delete it

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM; but we really should remove this crate imo.

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