Skip to content

Commit

Permalink
chore: Update commitment schemas in README
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Aug 21, 2024
1 parent 1a62c4d commit 3759997
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,26 @@ Container can be built via running `make docker-build`.

## Commitment Schemas

Commitments returned from the EigenDA Proxy adhere to the following byte encoding:
### Optimism Commitment Mode
For `alt-da` clients running on Optimism, the following commitment schema is supported:

```
0 1 2 3 N
|--------|--------|---------|---------------|
commit da layer version raw commitment
0 1 2 3 N
|--------|--------|---------|----------------|
commit da layer version raw commitment
type type byte
```

### Generic Commitment Mode
For generic clients communicating with proxy, the following commitment schema is supported:

```
0 1 N
|---------|-----------------|
version raw commitment
byte
```

The `raw commitment` is an RLP-encoded [EigenDA certificate](https://github.com/Layr-Labs/eigenda/blob/eb422ff58ac6dcd4e7b30373033507414d33dba1/api/proto/disperser/disperser.proto#L168).

**NOTE:** Commitments are cryptographically verified against the data fetched from EigenDA for all `/get` calls. The server will respond with status `500` in the event where EigenDA were to lie and provide falsified data thats irrespective of the client provided commitment. This feature cannot be disabled and is part of standard operation.
Expand Down

0 comments on commit 3759997

Please sign in to comment.