argumentcomputer / argumentcomputer/zk-light-clients
Generalize with a `ProvableProgram` trait
- Dominant language
- Rust
- Stars
- 70
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
In the `aptos-lc` crate, the `merkle` and `ratchet` modules have similar functions called `generate_stdin` and `generate_keys`.
Would it be better if we abstracted those in a `ProvableProgram` trait? It's not so clear because they don't share much code and it would risk bloating the code with boilerplate
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the aptos-lc crate by reading the merkle and ratchet modules and comparing their generate_stdin and generate_keys functions. Determine whether their shared behavior justifies a ProvableProgram trait without adding boilerplate; done means the abstraction question has a clearly documented decision and any agreed refactor is scoped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain, cryptography
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100