Skip to content

Commit

Permalink
External evaluation of Cryptex (#950)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Müller <[email protected]>
  • Loading branch information
Whisker17 and semuelle authored Aug 7, 2023
1 parent 0126f4a commit 067d345
Showing 1 changed file with 148 additions and 0 deletions.
148 changes: 148 additions & 0 deletions evaluations/cryptex_1_whisker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Evaluation

- **Status:** Accepted
- **Application Document:** [w3f/Grants-Program#1660](https://github.com/w3f/Grants-Program/blob/master/applications/cryptex.md)
- **Milestone:** 1
- **Kusama Identity:** [FdAoQzuxaG2nsXFGpvXfzzUDYueKqYK1B1LShZ874N2vhv5](https://sub.id/FdAoQzuxaG2nsXFGpvXfzzUDYueKqYK1B1LShZ874N2vhv5)
- **Previously successfully merged evaluation:** N/A

**Deliverables**

| Number | Deliverable | Accepted | Link | Evaluation Notes |
| ------ | ----------- | :------: | ---- |----------------- |
| **0a.** | License | <ul><li>[x] </li></ul> | https://github.com/ideal-lab5/substrate/blob/milestone1/LICENSE-GPL3, [etf-pallet](https://github.com/ideal-lab5/substrate/blob/e1b7e7bbbcdb3131edb0c635cec30dfcbe1012eb/bin/node-template/pallets/etf/Cargo.toml#L8) | GPLv3 |
| **0b.** | Documentation | <ul><li>[x] </li></ul> | https://ideal-lab5.github.io ||
| **0c.** | Testing and Testing Guide | <ul><li>[x] </li></ul> | https://docs.google.com/document/d/1XfBpWfTUq-8DYJ43ZqJGpXb_AJMEvK6PV01nEn8JwQo/edit?usp=sharing | `cargo tarpaulin` reports >88% test coverage on pallet |
| **0d.** | Docker | <ul><li>[x] </li></ul> | https://hub.docker.com/repository/docker/ideallabs/etf/general ||
| **0e.** | Article | <ul><li>[x] </li></ul> | https://ideallabs.substack.com/p/e6bb13fb-be93-4a22-b039-f81b7c70e93c | Unpublished draft |
| **1.** | Substrate module: IBE Pallet/IBC Setup | <ul><li>[x] </li></ul> | https://github.com/ideal-lab5/substrate/tree/milestone1/bin/node-template/pallets/etf/src ||
| **2.** | Substrate module: Aura Pallet | <ul><li>[x] </li></ul> | id generation: https://github.com/ideal-lab5/substrate/blob/40dca8d373ccdd59696b251f87ba89029a5bae63/client/consensus/aura/src/standalone.rs#L123, hash to curve: https://github.com/ideal-lab5/substrate/blob/502032949307b1c19cba606dbef1d2f108f71a56/client/consensus/aura/src/dleq.rs#L108 ||
| **3.** | Substrate module: Aura Client | <ul><li>[x] </li></ul> | https://github.com/ideal-lab5/substrate/tree/milestone1/client/consensus/aura/src||
| **4.** | Substrate Module: Validator Incentives | <ul><li>[x] </li></ul> | block header/proof verification: https://github.com/ideal-lab5/substrate/blob/502032949307b1c19cba606dbef1d2f108f71a56/client/consensus/aura/src/standalone.rs#L390, simple reward of 10 tokens/session: https://github.com/ideal-lab5/substrate/blob/cf0a5193af80e458ee585a614f7ff12ece9b56fd/frame/aura/src/lib.rs#L269 ||

## General Notes

Hash of commit tested: 6107ea484f23d4bbf9b0ea03deb41833a1b3ef38

Overall, this is a solid project, well docker-compose scripts and documentation, and all promised features work as expected.

Currently all of the tests are available.

### Logs

#### Unit tests

<details>

<summary> cargo +nightly test </summary>

https://drive.google.com/file/d/1Inlv96nT181t75mnxro2LGeiv5rLDJTq/view?usp=drive_link

</details>

<details>

<summary> etf-pallet </summary>

```bash
running 4 tests
test mock::__construct_runtime_integrity_test::runtime_integrity_tests ... ok
test tests::it_sets_the_genesis_state ... ok
test tests::it_fails_to_update_generator_when_not_decodable ... ok
test tests::it_allows_root_to_update_generator ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

Doc-tests pallet-etf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

```

</details>

<details>

<summary> Aura client + DLEQ implementation </summary>

```bash
running 6 tests
test dleq::tests::prove_secret_correctness_manual_testing_tool ... ok
test dleq::tests::dleq_prepare_and_verify_works ... ok
test standalone::tests::authorities_call_works ... ok
test tests::authoring_blocks ... ok
test tests::on_slot_returns_correct_block ... ok
test tests::current_node_authority_should_claim_slot ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 36.43s

Doc-tests sc-consensus-aura

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

```

</details>

<details>

<summary> runtime test-utils </summary>

```bash
running 8 tests
test __construct_runtime_integrity_test::runtime_integrity_tests ... ok
test tests::check_substrate_check_signed_extension_works ... ok
test storage_key_generator::expected_keys_vec_are_matching ... ok
test tests::validate_unsigned_works ... ok
test tests::validate_storage_keys ... ok
test tests::witness_backend_works ... ok
test tests::test_storage ... ok
test tests::heap_pages_is_respected ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.56s

Doc-tests substrate-test-runtime

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

```

</details>

<details>

<summary> Benchmark tests </summary>

```bash

Running unittests src/lib.rs (target/debug/deps/pallet_etf-bb86bac3c815b1c1)

running 5 tests
test mock::__construct_runtime_integrity_test::runtime_integrity_tests ... ok
test benchmarking::benchmarks::benchmark_tests::test_benchmarks ... ok
test tests::it_fails_to_update_generator_when_not_decodable ... ok
test tests::it_sets_the_genesis_state ... ok
test tests::it_allows_root_to_update_generator ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

Doc-tests pallet-etf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


```

</details>

### Screenshot

![monitor screenshot](https://github.com/w3f/Grant-Milestone-Delivery/assets/12571049/31a651b9-bf60-4aad-b44a-0883b8721032)

0 comments on commit 067d345

Please sign in to comment.