Skip to content

Commit

Permalink
Update RPC URL to use v1 endpoint (#42)
Browse files Browse the repository at this point in the history
* Update RPC URL to use v1 endpoint

* update docs

* rollback stack size
  • Loading branch information
tarassh authored Oct 9, 2024
1 parent ca1b3fb commit 0bb473b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
14 changes: 0 additions & 14 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ Single command to install and launch the Light Client:
curl -sSf https://storage.googleapis.com/ewm-release-artefacts/{{VERSION}}/macos/install.sh | bash -s <YOUR PRIVATE KEY>
```

Or go to the [Light Client Releases](https://github.com/covalenthq/ewm-das/releases) page and download the latest release.

Unzip the downloaded archive and navigate to the directory:

```bash
cd das-macos-latest
```

Run the following command to install the Light Client:

```bash
./install.sh <YOUR PRIVATE KEY>
```

To generate a private key, use can use following resources:

- [Visual-key](https://visualkey.link/)
Expand Down
2 changes: 1 addition & 1 deletion LIGHTCLIENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ Note: Private key is the identity of your client. To generate a private key, use
- [Eth-vanity](https://eth-vanity.io/#calc)

```sh
./bin/light-client --rpc-url wss://coordinator.das.test.covalentnetwork.org/rpc --collect-url https://us-central1-covalent-network-team-sandbox.cloudfunctions.net/ewm-das-collector --private-key ${PRIVATE_KEY}
./bin/light-client --rpc-url wss://coordinator.das.test.covalentnetwork.org/v1/rpc --collect-url https://us-central1-covalent-network-team-sandbox.cloudfunctions.net/ewm-das-collector --private-key ${PRIVATE_KEY}
```
2 changes: 1 addition & 1 deletion internal/constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package internal

const StackSize = 32
const StackSize = 64
2 changes: 1 addition & 1 deletion internal/light-client/sampler/sampler.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (s *Sampler) ProcessEvent(request internal.SamplingRequest, signature []byt
commitment := rootNode.Commitments[blobIndex].Nested.Bytes
proof := data.Proof.Nested.Bytes
cell := data.Cell.Nested.Bytes
res, err := verifier.NewKZGVerifier(commitment, proof, cell, uint64(colIndex), 32).VerifyBatch()
res, err := verifier.NewKZGVerifier(commitment, proof, cell, uint64(colIndex), internal.StackSize).VerifyBatch()
if err != nil {
log.Errorf("Failed to verify proof and cell: %v", err)
return
Expand Down
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ done
# Start light-client with the provided and hardcoded arguments
light-client \
--loglevel debug \
--rpc-url wss://coordinator.das.test.covalentnetwork.org/rpc \
--rpc-url wss://coordinator.das.test.covalentnetwork.org/v1/rpc \
--collect-url https://us-central1-covalent-network-team-sandbox.cloudfunctions.net/ewm-das-collector \
--private-key "$PRIVATE_KEY"
2 changes: 1 addition & 1 deletion scripts/macos/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ echo "IPFS daemon has started."
# Run your service binary with all the arguments
"\$COVALENT_DIR/\$SERVICE_NAME" \\
--loglevel debug \\
--rpc-url wss://coordinator.das.test.covalentnetwork.org/rpc \\
--rpc-url wss://coordinator.das.test.covalentnetwork.org/v1/rpc \\
--collect-url https://us-central1-covalent-network-team-sandbox.cloudfunctions.net/ewm-das-collector \\
--private-key "\$PRIVATE_KEY"
EOF
Expand Down

0 comments on commit 0bb473b

Please sign in to comment.