Skip to content

Commit

Permalink
Rename commitment mode 'default' mode to 'simple' mode
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyknox committed Jun 14, 2024
1 parent 3277de9 commit 128e46a
Show file tree
Hide file tree
Showing 4 changed files with 3,804 additions and 11 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ An ephemeral memory store backend can be used for faster feedback testing when p
## Running Locally

1. Compile binary: `make eigenda-proxy`
2. Run binary; e.g: `./bin/eigenda-proxy --addr 127.0.0.1 --port 5050 --eigenda-rpc 127.0.0.1:443 --eigenda-status-query-timeout 45m --eigenda-g1-path e2e/resources/kzg/g1.point --eigenda-g2-tau-path e2e/resources/kzg/g2.point.powerOf2 --eigenda-use-tls true`
2. Run binary; e.g: `./bin/eigenda-proxy --addr 127.0.0.1 --port 5050 --eigenda-rpc 127.0.0.1:443 --eigenda-status-query-timeout 45m --eigenda-g1-path e2e/resources/kzg/g1.point --eigenda-g2-tau-path e2e/resources/kzg/g2.point.powerOf2 --eigenda-disable-tls false`

**Env File**
An env file can be provided to the binary for runtime process ingestion; e.g:
Expand Down Expand Up @@ -68,16 +68,18 @@ The `raw commitment` for EigenDA is encoding certificate and kzg fields.
## Testing

### Unit

Unit tests can be ran via invoking `make test`.

### Holesky
A holesky integration test can be ran using `make holesky-test` to assert proper dispersal/retrieval against a public network. Please **note** that EigenDA Holesky network which is subject to rate-limiting and slow confirmation times *(i.e, >10 minutes per blob confirmation)*. Please advise EigenDA's [inabox](https://github.com/Layr-Labs/eigenda/tree/master/inabox#readme) if you'd like to spin-up a local DA network for faster iteration testing.

A holesky integration test can be ran using `make holesky-test` to assert proper dispersal/retrieval against a public network. Please **note** that EigenDA Holesky network which is subject to rate-limiting and slow confirmation times *(i.e, >10 minutes per blob confirmation)*. Please advise EigenDA's [inabox](https://github.com/Layr-Labs/eigenda/tree/master/inabox#readme) if you'd like to spin-up a local DA network for faster iteration testing.

### Optimism

An E2E test exists which spins up a local OP sequencer instance using the [op-e2e](https://github.com/ethereum-optimism/optimism/tree/develop/op-e2e) framework for asserting correct interaction behaviors with batch submission and state derivation. These tests can be ran via `make optimism-test`.

**NOTE:**
**NOTE:**

## Downloading Mainnet SRS

Expand Down
6 changes: 3 additions & 3 deletions e2e/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ func TestProxyClient(t *testing.T) {
var testPreimage = []byte("inter-subjective and not objective!")

t.Log("Setting input data on proxy server...")
blobInfo, err := daClient.SetData(ts.Ctx, testPreimage, server.DefaultCommitmentMode)
blobInfo, err := daClient.SetData(ts.Ctx, testPreimage, server.SimpleCommitmentMode)
require.NoError(t, err)

// 2 - fetch data from EigenDA for generated commitment key
t.Log("Getting input data from proxy server...")
preimage, err := daClient.GetData(ts.Ctx, blobInfo, server.BinaryDomain, server.DefaultCommitmentMode)
preimage, err := daClient.GetData(ts.Ctx, blobInfo, server.BinaryDomain, server.SimpleCommitmentMode)
require.NoError(t, err)
require.Equal(t, testPreimage, preimage)

// 3 - fetch iFFT representation of preimage
iFFTPreimage, err := daClient.GetData(ts.Ctx, blobInfo, server.PolyDomain, server.DefaultCommitmentMode)
iFFTPreimage, err := daClient.GetData(ts.Ctx, blobInfo, server.PolyDomain, server.SimpleCommitmentMode)
require.NoError(t, err)
require.NotEqual(t, preimage, iFFTPreimage)

Expand Down
Loading

0 comments on commit 128e46a

Please sign in to comment.