Skip to content

Return packed availability claim payloads#407

Open
aledefra wants to merge 2 commits into
developfrom
codex/packed-availability-claims
Open

Return packed availability claim payloads#407
aledefra wants to merge 2 commits into
developfrom
codex/packed-availability-claims

Conversation

@aledefra
Copy link
Copy Markdown
Contributor

Summary

  • Add from_epoch, to_epoch, and packed_availabilities to oracle availability responses.
  • Sign the compact claim payload produced by the blockchain SDK.
  • Keep expanded epochs and epochs_vals in the API response for inspection.

Validation

  • python -m py_compile extensions/business/oracle_management/oracle_api.py

@aledefra aledefra requested a review from Copilot May 14, 2026 15:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the oracle availability API payload to include a compact, SDK-produced claim representation (range + packed availability bytes) alongside the existing expanded epochs / epochs_vals, and signs the compact claim payload for EVM verification.

Changes:

  • Extend __get_signed_data output with from_epoch, to_epoch, and packed_availabilities.
  • Update the signing path to surface the compact claim fields returned by the blockchain SDK.
  • Keep expanded epoch lists in the response for inspection/debugging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread extensions/business/oracle_management/oracle_api.py
Comment thread extensions/business/oracle_management/oracle_api.py
@aledefra aledefra changed the title [codex] Return packed availability claim payloads Return packed availability claim payloads May 14, 2026
@aledefra aledefra marked this pull request as ready for review May 14, 2026 15:21
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.

2 participants