Welcome! This exercise is designed to help you practice key Rust programming skills specifically for Bitcoin development.
Your task is to complete the TODO
items found in the source files located in the src/
directory.
- Fork this repository.
- Go to the
Actions
tab and enable github workflow for your repository by clickingI understand my ...
-
Clone your fork to your local computer.
-
Explore the Code
- Open the
src/
directory and examine the Rust source files. - Look for code marked with
TODO
.
- Open the
-
Complete the TODOs
- Implement the missing logic where indicated.
- Ensure your code is readable, idiomatic, and compiles without warnings.
-
Test Your Code
- Run the tests using:
cargo test --test unit_tests
- Run the tests using:
-
Format and Lint (Optional but Recommended)
- Format your code:
cargo fmt
- Run Clippy for linting:
cargo clippy
- Format your code:
-
Commit and push your changes to the
main
branch of your remote fork. -
Confirm your forked repository has a green check mark.
- Submit your solution to this form: Google form.
PS: You can commit and push as often as you like and GitHub Actions will re-evaluate your code every time. You will need to look through the auto-grader logs (in the "Actions" tab) to see what exactly you got right or wrong.