-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into ci-fix
- Loading branch information
Showing
36 changed files
with
726 additions
and
74 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# CODEOWNERS: https://help.github.com/articles/about-codeowners/ | ||
* @sept-en | ||
* @karim-en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Eth-Prover | ||
|
||
Eth-Prover trustless contract to prove the integrity of data (proofs) provided by users and relayer trustlessly. | ||
|
||
## How To Generate Proofs:- | ||
|
||
- Pre-requisites before calling `eth_getProof` : | ||
- DATA, 20 Bytes - address of the account. | ||
- ARRAY, 32 Bytes - array of storage-keys which should be proofed and included. See eth_getStorageAt | ||
- QUANTITY|TAG - integer block number, or the string "latest" or "earliest" | ||
|
||
|
||
- To generate proofs one need to call RPC method `eth_getProof` [check-here](https://eips.ethereum.org/EIPS/eip-1186). | ||
|
||
|
||
|
||
## About Parameters of `verify_storage_proof` method :- | ||
|
||
- `header_data: Vec<u8>` : Rlp-Serilized Header data from RPC call to `eth_getBlockByNumber` [check here](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) | ||
- `account_proof: Vec<Vec<u8>>`: Buffer data of account-proof from `eth_getProof` method call response. | ||
- `contract_address: Vec<u8>`: Buffered data of Eth-contract address for which we are prooving. | ||
- `expected_account_state: Vec<u8>`: encoded account state made-up of `{nonce, balance, storageHash, codeHash}` | ||
- `storage_key_hash: Vec<u8>`: keccak256 of storage-key in `eth_getProof` | ||
- `storage_proof: Vec<Vec<u8>>`: Buffer data of `storage-proof` for above `storage_key` from `eth_getProof` method call response. | ||
- `expected_storage_value: Vec<u8>`: storage_value against which proof is to be verified. | ||
- `min_header_height: Option<u64>`: Valid-till block height for unlock. | ||
- `max_header_height: Option<u64>`: Currently set to None | ||
- `skip_bridge_call: bool`: whether to make eth-client call or not. Always take false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.