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

[saya] Publish proof to Celestia #2053

Merged
merged 3 commits into from
Jun 22, 2024

Conversation

neotheprogramist
Copy link
Collaborator

Description

Including a proof blob into celestia DA.

Tests

As a local celestia instance is needed, tested as e2e.

  • Yes
  • No, because they aren't needed
  • No, because I need help

Added to documentation?

Already present, only internal implementation changed.

  • README.md
  • Dojo Book
  • No documentation needed

Checklist

  • I've formatted my code (scripts/prettier.sh, scripts/rust_fmt.sh, scripts/cairo_fmt.sh)
  • I've linted my code (scripts/clippy.sh, scripts/docs.sh)
  • I've commented my code
  • I've requested a review after addressing the comments

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 24 lines in your changes missing coverage. Please review.

Project coverage is 68.49%. Comparing base (d3c3351) to head (3c1b3cd).
Report is 31 commits behind head on main.

Files Patch % Lines
...es/saya/core/src/data_availability/celestia/mod.rs 0.00% 12 Missing ⚠️
crates/saya/core/src/lib.rs 0.00% 9 Missing ⚠️
bin/saya/src/args/data_availability.rs 0.00% 2 Missing ⚠️
bin/saya/src/args/mod.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2053      +/-   ##
==========================================
+ Coverage   68.21%   68.49%   +0.27%     
==========================================
  Files         323      328       +5     
  Lines       40269    41058     +789     
==========================================
+ Hits        27468    28121     +653     
- Misses      12801    12937     +136     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@glihm glihm left a comment

Choose a reason for hiding this comment

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

Great work @neotheprogramist! Minor comments to be addressed.

crates/saya/core/src/lib.rs Show resolved Hide resolved
crates/saya/core/src/lib.rs Outdated Show resolved Hide resolved
state_diff_proof.iter().flat_map(|fe| fe.to_bytes_be().to_vec()).collect();
let proof_blob = Blob::new(self.namespace, proof_bytes)?;

// TODO: we may want to use `blob_get` to ensure the state diff has been published
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you're ok for doing it here, let's do it. If not, let's open an issue to keep track of that in the future.

Copy link
Collaborator

@glihm glihm left a comment

Choose a reason for hiding this comment

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

Thanks for the work here @neotheprogramist!

@glihm glihm merged commit 0d3c0b0 into dojoengine:main Jun 22, 2024
14 of 15 checks passed
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