Skip to content

Commit e151142

Browse files
authored
Merge pull request #165 from anoma/xuyang/remove_apps
move app examples to a separate repo
2 parents 087e7d0 + 613d8fd commit e151142

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4
-26290
lines changed

Cargo.lock

Lines changed: 0 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
resolver = "2"
33
members = [
44
"arm",
5-
"examples/kudo_application/app",
6-
"examples/simple_counter_application/app",
7-
"examples/kudo_application/logic_witness",
8-
"examples/kudo_application/kudo_traits",
9-
"examples/simple_counter_application/counter_witness",
10-
"examples/simple_transfer_application/simple_transfer_witness",
11-
"examples/simple_transfer_application/app"
125
]
136

147
[profile.bench]

README.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ This is a shielded resource machine implementation based on [Risc0-zkvm](https:/
1616
- **compliance**: Basic compliance checking circuit
1717
- **trivial_logic**: Minimal logic circuit example, also used in padding resources
1818
- **proof aggregation (batch_aggregation, sequential_aggregation)**: Circuits for single-run aggregation and IVC-based aggregation, respectively
19-
- **logic_test**: The logic circuit contains hardcoded data to cover all instance fields and is used only in tests
20-
- **counter**: The simple counter logic circuit
21-
- **kudo circuits(kudo_main, simple_kudo_denomination, simple_kudo_receive)**: kudo application circuits
2219

23-
- **`examples/`**: Demonstration application examples:
24-
- **kudo_application**: A simple counter increment example
25-
- **simple_counter_application**: A relatively complex example; more detailed descriptions can be found [here](https://research.anoma.net/t/shielded-kudos-revised-no-authorisation-abstraction/1522)
26-
- **simple_transfer_application**: A simplified transfer application for use in the Protocol Adapter; more detailed descriptions can be found [here](https://forum.anoma.net/t/simple-transfer-application-for-ethereum/2193)
20+
## ARM-RISC0 Application Examples
21+
22+
Several application examples are available at [here](https://github.com/anoma/arm-risc0-examples), including the simple counter application, token transfer application, and the kudo application.
2723

2824
## Getting Started
2925

@@ -52,20 +48,6 @@ RISC0_DEV_MODE=1 cargo test
5248
cargo test --release
5349
```
5450

55-
* Run examples
56-
57-
For example, test the simple counter example:
58-
59-
```bash
60-
cd simple_counter
61-
62-
# Run the counter initialization test
63-
cargo test test_create_init_counter_tx
64-
65-
# Run the counter increment test
66-
cargo test test_create_increment_tx
67-
```
68-
6951
### Run tests and examples on Bonsai
7052

7153
[Bonsai](https://risczero.com/bonsai) is a remote and high-performance service provided by RISC0 for generating proofs. To use Bonsai, you can request an API key [here](https://docs.google.com/forms/d/e/1FAIpQLSf9mu18V65862GS4PLYd7tFTEKrl90J5GTyzw_d14ASxrruFQ/viewform), and then set the environment variables. Once set up, your proof generation tasks will be automatically offloaded to Bonsai.
@@ -78,7 +60,6 @@ export BONSAI_API_KEY=<YOUR_API_KEY>
7860
### Benchmark
7961

8062
* [Compliance circuit benchmark](./arm_circuits/compliance/README.md)
81-
* [Kudo example benchmark](./examples/kudo_application/README.md)
8263

8364
## Feature flags
8465

arm_circuits/Cargo.lock

Lines changed: 0 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arm_circuits/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "2"
3-
members = [ "compliance", "trivial_logic", "counter", "kudo_main", "simple_kudo_denomination", "simple_kudo_receive", "logic_test" ]
3+
members = [ "compliance", "trivial_logic", "logic_test" ]
44

55
# Always optimize; otherwise tests take excessively long.
66
[profile.dev]

arm_circuits/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ cargo risczero build --manifest-path arm_circuits/trivial_logic/methods/guest/Ca
77

88
cargo risczero build --manifest-path arm_circuits/logic_test/methods/guest/Cargo.toml
99

10-
cargo risczero build --manifest-path arm_circuits/counter/methods/guest/Cargo.toml
11-
12-
cargo risczero build --manifest-path arm_circuits/kudo_main/methods/guest/Cargo.toml
13-
14-
cargo risczero build --manifest-path arm_circuits/simple_kudo_denomination/methods/guest/Cargo.toml
15-
16-
cargo risczero build --manifest-path arm_circuits/simple_kudo_receive/methods/guest/Cargo.toml
17-
18-
cargo risczero build --manifest-path arm_circuits/simple_transfer/methods/guest/Cargo.toml
19-
2010
cargo risczero build --manifest-path arm_circuits/sequential_aggregation/methods/guest/Cargo.toml
2111

2212
cargo risczero build --manifest-path arm_circuits/batch_aggregation/methods/guest/Cargo.toml
@@ -26,9 +16,5 @@ cargo risczero build --manifest-path arm_circuits/batch_aggregation/methods/gues
2616
```bash
2717
// It covers the previous ELF files, prints their IDs. You need to manually update ids in apps for testing.
2818
cargo test -- --nocapture print_compliance_elf_id
29-
cargo test -- --nocapture print_counter_elf_id
30-
cargo test -- --nocapture print_kudo_main_elf_id
31-
cargo test -- --nocapture print_simple_kudo_denomination_elf_id
32-
cargo test -- --nocapture print_simple_kudo_receive_elf_id
3319
cargo test -- --nocapture print_trivial_logic_elf_id
3420
```

arm_circuits/counter/Cargo.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

arm_circuits/counter/methods/Cargo.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

arm_circuits/counter/methods/build.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)