Skip to content

Conversation

@0xrajath
Copy link
Collaborator

@0xrajath 0xrajath commented Jul 18, 2025

Motivation:

We need to add some additional certificate checks in the submitResult function of the TaskMailbox to prevent malicious behavior.

Modifications:

  • Require check that the referenceTimestamp of the certificate equals the referenceTimestamp snapshotted at task creation time.
  • Require check that the messageHash of the certificate matches the hash of the task result.

Result:

Safe submitResult.

@0xrajath 0xrajath self-assigned this Jul 18, 2025
@0xrajath 0xrajath added the ⌛ Hourglass Hourglass, a task-based AVS framework label Jul 18, 2025
@0xrajath 0xrajath changed the title fix: submitResult checks fix: submitResult checks Jul 18, 2025
@0xrajath 0xrajath changed the title fix: submitResult checks fix: submitResult certificate checks Jul 18, 2025
@0xrajath 0xrajath requested a review from ypatil12 July 21, 2025 20:32
@0xrajath 0xrajath marked this pull request as ready for review July 21, 2025 20:32
@0xrajath 0xrajath merged commit 919e36b into release-dev/hourglass Jul 22, 2025
9 checks passed
@0xrajath 0xrajath deleted the fix/message-hash branch July 22, 2025 18:16
0xrajath added a commit that referenced this pull request Jul 22, 2025
**Motivation:**

We need to add some additional certificate checks in the `submitResult`
function of the TaskMailbox to prevent malicious behavior.

**Modifications:**

* Require check that the referenceTimestamp of the certificate equals
the referenceTimestamp snapshotted at task creation time.
* Require check that the messageHash of the certificate matches the hash
of the task result.

**Result:**

Safe `submitResult`.
0xrajath added a commit that referenced this pull request Jul 24, 2025
**Motivation:**

We need to add some additional certificate checks in the `submitResult`
function of the TaskMailbox to prevent malicious behavior.

**Modifications:**

* Require check that the referenceTimestamp of the certificate equals
the referenceTimestamp snapshotted at task creation time.
* Require check that the messageHash of the certificate matches the hash
of the task result.

**Result:**

Safe `submitResult`.
@0xrajath 0xrajath mentioned this pull request Jul 24, 2025
0xrajath added a commit that referenced this pull request Jul 25, 2025
**Motivation:**

We need to add some additional certificate checks in the `submitResult`
function of the TaskMailbox to prevent malicious behavior.

**Modifications:**

* Require check that the referenceTimestamp of the certificate equals
the referenceTimestamp snapshotted at task creation time.
* Require check that the messageHash of the certificate matches the hash
of the task result.

**Result:**

Safe `submitResult`.
0xrajath added a commit that referenced this pull request Jul 30, 2025
**Motivation:**

We need to add some additional certificate checks in the `submitResult`
function of the TaskMailbox to prevent malicious behavior.

**Modifications:**

* Require check that the referenceTimestamp of the certificate equals
the referenceTimestamp snapshotted at task creation time.
* Require check that the messageHash of the certificate matches the hash
of the task result.

**Result:**

Safe `submitResult`.
0xrajath added a commit that referenced this pull request Jul 30, 2025
# v1.8.0 Hourglass

The Hourglass release consists of a framework that supports the creation
of task-based AVSs. The task-based AVSs are enabled through a
`TaskMailbox` core contract deployed to all chains that support a
`CertificateVerifier`. Additionally AVSs deploy their
`TaskAVSRegistrar`. The release has 3 components:

1. Core Contracts
2. AVS Contracts
3. Offchain Infrastructure

The below release notes cover Core Contracts. For more information on
the end to end protocol, see our
[docs](https://github.com/Layr-Labs/hourglass-monorepo/blob/master/README.md)
and [core contract docs](../docs/avs/task/TaskMailbox.md).

## Release Manager

@0xrajath 

## Highlights

This hourglass release only introduces new contracts. As a result, there
are no breaking changes or deprecations.

🚀 New Features

Destination Chain Contracts
- `TaskMailbox`: A core infrastructure contract that enables task-based
AVS execution models. It provides a standardized way for AVSs to create
tasks, have operators execute them, and submit verified results
on-chain. The contract acts as a mailbox system where task creators post
tasks with fees, and operators compete to execute and submit results
with proper consensus verification.

## Changelog

- feat: no consensus config [PR
#1574](#1574)
- fix: hourglass internal review fixes [PR
#1570](#1570)
- fix: addressing pr comments [PR
#1568](#1568)
- fix: deploy script
- fix: deploy script
- fix: hourglass release upgrade semver
- fix: hourglass release upgrade semver
- docs: changelog
- fix: correct ecdsa message hash check [PR
#1563](#1563)
- fix: missing assume in fuzz test
- fix: `submitResult` certificate checks [PR
#1557](#1557)
- chore: forge fmt
- fix: certificate verifier interface changes
- feat: hourglass zeus script [PR
#1546](#1546)
- fix: mock certificate verifiers [PR
#1545](#1545)
- feat: hourglass (task-based AVS framework) [PR
#1534](#1534)

---------

Co-authored-by: Nadir Akhtar <[email protected]>
@0xrajath 0xrajath mentioned this pull request Jul 30, 2025
0xrajath added a commit that referenced this pull request Jul 30, 2025
# v1.8.0 Hourglass

The Hourglass release consists of a framework that supports the creation
of task-based AVSs. The task-based AVSs are enabled through a
`TaskMailbox` core contract deployed to all chains that support a
`CertificateVerifier`. Additionally AVSs deploy their
`TaskAVSRegistrar`. The release has 3 components:

1. Core Contracts
2. AVS Contracts
3. Offchain Infrastructure

The below release notes cover Core Contracts. For more information on
the end to end protocol, see our
[docs](https://github.com/Layr-Labs/hourglass-monorepo/blob/master/README.md)
and [core contract docs](../docs/avs/task/TaskMailbox.md).

## Release Manager

@0xrajath 

## Highlights

This hourglass release only introduces new contracts. As a result, there
are no breaking changes or deprecations.

🚀 New Features

Destination Chain Contracts
- `TaskMailbox`: A core infrastructure contract that enables task-based
AVS execution models. It provides a standardized way for AVSs to create
tasks, have operators execute them, and submit verified results
on-chain. The contract acts as a mailbox system where task creators post
tasks with fees, and operators compete to execute and submit results
with proper consensus verification.

## Changelog

- feat: no consensus config [PR
#1574](#1574)
- fix: hourglass internal review fixes [PR
#1570](#1570)
- fix: addressing pr comments [PR
#1568](#1568)
- fix: deploy script
- fix: deploy script
- fix: hourglass release upgrade semver
- fix: hourglass release upgrade semver
- docs: changelog
- fix: correct ecdsa message hash check [PR
#1563](#1563)
- fix: missing assume in fuzz test
- fix: `submitResult` certificate checks [PR
#1557](#1557)
- chore: forge fmt
- fix: certificate verifier interface changes
- feat: hourglass zeus script [PR
#1546](#1546)
- fix: mock certificate verifiers [PR
#1545](#1545)
- feat: hourglass (task-based AVS framework) [PR
#1534](#1534)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⌛ Hourglass Hourglass, a task-based AVS framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants