Skip to content

Commit 4478256

Browse files
authored
Pull fixes from testnet (#1231)
2 parents 07f682c + 7679154 commit 4478256

File tree

13 files changed

+20
-87
lines changed

13 files changed

+20
-87
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66
CONFIG_FILE?=config-files/config.yaml
77
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
88

9-
OPERATOR_VERSION=v0.8.0
9+
OPERATOR_VERSION=v0.9.0
1010

1111
ifeq ($(OS),Linux)
1212
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux

batcher/aligned/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aligned"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
edition = "2021"
55

66
[dependencies]

docs/1_introduction/0_about_aligned.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Aligned is a decentralized network that verifies Zero-Knowledge/validity proofs and posts the results to Ethereum. It is designed to provide high throughput, cheap proof verification with low latency.
44

55
{% hint style="info" %}
6-
If you are unfamiliar with ZK and why this is useful, see [Why ZK and Aligned?](./5_why_zk.md)
6+
If you are unfamiliar with ZK and why this is useful, see [Why ZK and Aligned?](./4_why_zk.md)
77
{% endhint %}
88

99
## Mission
File renamed without changes.

docs/1_introduction/2_zkquiz.md

Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Verifiable computation allows developers to build applications that help Ethereu
166166

167167
### What are the use cases for Aligned?
168168

169-
We believe that there are many things that will be built using Aligned that we have not even imagined yet. For some possible use cases please see [this page](../1_introduction/3_use_cases.md).
169+
We believe that there are many things that will be built using Aligned that we have not even imagined yet. For some possible use cases please see [this page](../1_introduction/2_use_cases.md).
170170

171171
### Why don’t you run Aligned on top of a virtual machine?
172172

File renamed without changes.

docs/3_guides/0_submitting_proofs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Submitting Proofs
22

3-
Make sure you have Aligned installed as specified [here](../1_introduction/1_getting_started.md#Quickstart).
3+
Make sure you have Aligned installed as specified [here](../1_introduction/1_try_aligned.md#quickstart).
44

55
If you run the examples below, make sure you are in Aligned's repository root.
66

@@ -100,7 +100,7 @@ These commands allow the usage of the following flags:
100100

101101
## 3. Submit your proof to the batcher
102102

103-
This guide will focus on how to submit proofs using the Aligned CLI. To integrate the proof submission process into your application, check the [Aligned SDK guide](../3_guides/2_integrating_aligned_into_your_application.md).
103+
This guide will focus on how to submit proofs using the Aligned CLI. To integrate the proof submission process into your application, check the [First Aligned Application tutorial](../3_guides/2_build_your_first_aligned_application.md#app) where we explain how to generate and submit a proof using the Aligned SDK.
104104

105105
Proof submission is done via the `submit` command of the Aligned CLI. The arguments for the submit command are:
106106

docs/3_guides/1_SDK_how_to.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use this SDK in your Rust project, add the following to your `Cargo.toml`:
1212

1313
```toml
1414
[dependencies]
15-
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.6.0" }
15+
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.9.0" }
1616
```
1717

1818
To find the latest release tag go to [releases](https://github.com/yetanotherco/aligned_layer/releases) and copy the
@@ -47,7 +47,7 @@ fn main() {
4747

4848
Or you can make a more complex call to submit a proof:
4949

50-
(code extract from [ZKQuiz](../1_introduction/2_zkquiz.md))
50+
(code extract from [ZKQuiz example](../3_guides/2_build_your_first_aligned_application.md#app))
5151

5252
```rust
5353
const BATCHER_URL: &str = "wss://batcher.alignedlayer.com";
@@ -67,7 +67,9 @@ fn main() {
6767
let wallet = LocalWallet::decrypt_keystore(args.keystore_path, &keystore_password)
6868
.expect("Failed to decrypt keystore")
6969
.with_chain_id(17000u64);
70-
let max_fee: U256 = estimate_fee(&rpc_url, PriceEstimate::Default).await.unwrap();
70+
let max_fee = estimate_fee(&rpc_url, PriceEstimate::Instant)
71+
.await
72+
.expect("failed to fetch gas price from the blockchain");
7173

7274
// Call to SDK:
7375
match submit_and_wait_verification(

docs/3_guides/2_build_your_first_aligned_application.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This will:
8181

8282
## Deep dive
8383

84-
The ZkQuiz source coude is available [here](../../examples/zkquiz).
84+
The ZkQuiz source code is available [here](../../examples/zkquiz).
8585

8686
ZkQuiz has three main components:
8787
- App/script
@@ -147,17 +147,11 @@ It is not mandatory to create an Smart Contract. You can make off-chain apps tha
147147
**Program Identifier Validation**
148148

149149
The contract first checks that the commitment of the program matches with the one that we expect.
150-
151-
In our zkquiz example, we get the following elf_commitment:
150+
In our zkquiz example, we get the following elf commitment:
152151

153152
```solidity
154153
// contracts/src/VerifierContract.sol
155-
156154
bytes32 public elfCommitment = 0x3f99615fdf3b67a01e41b38eee75a32c778ee2fa631bd74e01c89afc2f70f5de;
157-
158-
if (elfCommitment != provingSystemAuxDataCommitment) {
159-
revert InvalidElf(provingSystemAuxDataCommitment);
160-
}
161155
```
162156

163157
You can generate the expected commitment without actually generating and submitting a proof using the Aligned CLI tool running:

0 commit comments

Comments
 (0)