Skip to content

docs: update template documentation#830

Merged
0xjei merged 6 commits into
mainfrom
docs/template
Oct 10, 2025
Merged

docs: update template documentation#830
0xjei merged 6 commits into
mainfrom
docs/template

Conversation

@0xjei

@0xjei 0xjei commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Quick Start: improved text flow/formatting, added project-structure items (coordination server, configuration), and clarified compile and development startup steps.
    • Default template README: reframed prerequisites (Linux/POSIX/Nix), streamlined CLI installation/verification, replaced Docker/tmux workflows with a single-start project creation and run flow, and clarified encrypted-computation outcomes.
    • Updated “Next Steps” pointers and tutorial links.

@vercel

vercel Bot commented Oct 10, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
crisp Skipped Skipped Oct 10, 2025 4:34pm
enclave-docs Skipped Skipped Oct 10, 2025 4:34pm

@coderabbitai

coderabbitai Bot commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Documentation-only changes: Quick Start page text reflow and added project-structure items; default template README extensively rewritten to replace Docker/tmux workflows with streamlined installation, verification, project creation, build, and single-command dev startup guidance.

Changes

Cohort / File(s) Summary of Changes
Quick Start docs
docs/pages/quick-start.mdx
Reflowed and split sentences; added Coordination server and Configuration to the project structure list; minor editorial adjustments in “Compile Your E3 Program” and “Start the Development Environment”; purely documentation edits.
Template README overhaul
templates/default/README.md
Large rewrite: removed Docker/tmux-centric instructions, emphasized Linux/POSIX and Nix notes, introduced rzup and a curl/wget Enclave CLI installer with verification steps, updated project creation examples, consolidated build/compile guidance, simplified to a single-command dev startup with an explicit wait note, and reframed run/next-steps content.

Sequence Diagram(s)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested labels

documentation

Suggested reviewers

  • cedoor

Poem

I nibble lines and tidy trails,
I patch the README, mend the rails.
New steps to start, a smoother map,
Curl, rzup, verify — a hop and clap.
Quiet warren ready, docs alight. 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly identifies the core change—updating the template documentation—and aligns directly with the modifications made to both the Quick Start guide and the default README.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/template

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2cce4f5 and 6c8842f.

📒 Files selected for processing (1)
  • templates/default/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-10T12:56:40.519Z
Learnt from: 0xjei
PR: gnosisguild/enclave#830
File: templates/default/README.md:123-128
Timestamp: 2025-10-10T12:56:40.519Z
Learning: In the Enclave repository, the hard-coded Hardhat development private key `0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80` is acceptable in template README files and documentation for local testing/interaction purposes.

Applied to files:

  • templates/default/README.md
🪛 Gitleaks (8.28.0)
templates/default/README.md

[high] 131-131: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: build_enclave_cli
  • GitHub Check: test_net
  • GitHub Check: build_sdk
  • GitHub Check: integration_prebuild
  • GitHub Check: test_contracts
  • GitHub Check: rust_unit
🔇 Additional comments (1)
templates/default/README.md (1)

81-115: Clarify dependency installation after project init

After enclave init the README jumps straight to pnpm dev:all. Unless the CLI now installs workspace deps automatically, newcomers will hit missing-package errors. Please confirm whether enclave init wires everything up; if not, add the explicit pnpm install step (or note that it’s already handled).


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@0xjei 0xjei self-assigned this Oct 10, 2025
@0xjei 0xjei linked an issue Oct 10, 2025 that may be closed by this pull request

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (7)
docs/pages/quick-start.mdx (2)

27-30: Add dependency install before starting services

Without installing workspace deps, pnpm dev:all may fail. Add pnpm install after project init.

 ```bash
 enclave init my-first-e3
 cd my-first-e3
+pnpm install

---

`42-46`: **Use consistent branding: “RISC Zero zkVM”**

Align naming with upstream docs (“RISC Zero zkVM”), not “Risc0 zkvm”.


```diff
-First, compile your E3 program to build the Risc0 zkvm image:
+First, compile your E3 program to build the RISC Zero zkVM image:
-This builds the Risc0 zkvm image that will be deployed on the blockchain and used for verification
+This builds the RISC Zero zkVM image that will be deployed on the blockchain and used for verification
 of the final proof.

Also applies to: 48-49

templates/default/README.md (5)

80-83: Install dependencies after creating the project

Add pnpm install so the monorepo boots correctly.

 ```bash
 enclave init my-first-e3
 cd my-first-e3
+pnpm install

---

`95-101`: **Normalize to “RISC Zero zkVM”**

Align naming with upstream terminology.


```diff
-First, compile your E3 program to build the Risc0 zkvm image:
+First, compile your E3 program to build the RISC Zero zkVM image:
-This builds the Risc0 zkvm image that will be deployed on the blockchain and used for verification of the final proof.
+This builds the RISC Zero zkVM image that will be deployed on the blockchain and used for verification of the final proof.

15-19: Tighten wording of system requirements

Small clarity tweak.

-As system requirements:
+System requirements:

3-3: Intro sentence polish

Improve flow and examples phrasing.

-The Enclave Protocol Template provides a complete development environment for building and testing applications with Fully Homomorphic Encryption (FHE). This template enables local deployment and interaction with the Enclave protocol without requiring the core contracts to be copied and avoiding complexities of specific programs (as zk circuits for CRISP).
+The Enclave Protocol Template provides a complete development environment for building and testing applications with Fully Homomorphic Encryption (FHE). It enables local deployment and interaction with the Enclave protocol without requiring core contracts to be copied and while avoiding complexities of specific programs (e.g., zk circuits for CRISP).

24-31: Add a brief caution note for curl|bash installers

Optional: add a one-line note advising users to review scripts or pin versions before piping to bash, to improve security posture for cautious users.

Also applies to: 50-57

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d037828 and 605ad2d.

📒 Files selected for processing (2)
  • docs/pages/quick-start.mdx (6 hunks)
  • templates/default/README.md (1 hunks)
🧰 Additional context used
🪛 Gitleaks (8.28.0)
templates/default/README.md

[high] 125-125: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: build_sdk
  • GitHub Check: build_e3_support_dev
  • GitHub Check: rust_unit
  • GitHub Check: build_e3_support_risc0
  • GitHub Check: test_net
  • GitHub Check: build_enclave_cli
  • GitHub Check: integration_prebuild
  • GitHub Check: test_contracts
🔇 Additional comments (3)
docs/pages/quick-start.mdx (2)

61-66: Confirm product naming: “ciphernodes”

Is “ciphernodes” the correct term in this project? If it’s “cipher nodes” (or a different service name), update for clarity/consistency.


17-21: Verify minimum tool versions
Ensure Node (≥22.10.0), pnpm (≥10.7.1), and rustc (≥1.86.0) floors align with the project’s package.json engines and the MSRV in Cargo.toml; update this snippet if they differ.

templates/default/README.md (1)

113-118: Confirm product naming: “ciphernodes”

Is “ciphernodes” the intended service name? If not, update to the canonical term used in this repo.

Comment thread templates/default/README.md Outdated
Comment thread templates/default/README.md
Comment thread templates/default/README.md Outdated
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@vercel vercel Bot temporarily deployed to Preview – crisp October 10, 2025 12:54 Inactive
@vercel vercel Bot temporarily deployed to Preview – enclave-docs October 10, 2025 12:54 Inactive
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@vercel vercel Bot temporarily deployed to Preview – crisp October 10, 2025 12:55 Inactive
@vercel vercel Bot temporarily deployed to Preview – enclave-docs October 10, 2025 12:55 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 605ad2d and e3f7b23.

📒 Files selected for processing (1)
  • templates/default/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-10T12:56:40.519Z
Learnt from: 0xjei
PR: gnosisguild/enclave#830
File: templates/default/README.md:123-128
Timestamp: 2025-10-10T12:56:40.519Z
Learning: In the Enclave repository, the hard-coded Hardhat development private key `0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80` is acceptable in template README files and documentation for local testing/interaction purposes.

Applied to files:

  • templates/default/README.md
🪛 Gitleaks (8.28.0)
templates/default/README.md

[high] 124-124: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: rust_unit
  • GitHub Check: build_e3_support_dev
  • GitHub Check: build_sdk
  • GitHub Check: test_net
  • GitHub Check: integration_prebuild
  • GitHub Check: build_enclave_cli
  • GitHub Check: test_contracts

Comment thread templates/default/README.md
@vercel vercel Bot temporarily deployed to Preview – crisp October 10, 2025 13:03 Inactive
@vercel vercel Bot temporarily deployed to Preview – enclave-docs October 10, 2025 13:03 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
templates/default/README.md (2)

3-3: Clarify the comparison phrasing

“as zk circuits” reads awkwardly. Please rephrase to “such as zk circuits” for smoother grammar.

-...avoiding complexities of specific programs (as zk circuits for CRISP).
+...avoiding complexities of specific programs (such as zk circuits for CRISP).

94-101: Use consistent RISC Zero naming

Elsewhere you use “RISC Zero”; here it shifts to “Risc0”/“zkvm”. For clarity, stick with “RISC Zero zkVM”.

-First, compile your E3 program to build the Risc0 zkvm image:
+First, compile your E3 program to build the RISC Zero zkVM image:
@@
-This builds the Risc0 zkvm image that will be deployed on the blockchain and used for verification of the final proof.
+This builds the RISC Zero zkVM image that will be deployed on the blockchain and used for verification of the final proof.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e3f7b23 and 2cce4f5.

📒 Files selected for processing (1)
  • templates/default/README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-10T12:56:40.519Z
Learnt from: 0xjei
PR: gnosisguild/enclave#830
File: templates/default/README.md:123-128
Timestamp: 2025-10-10T12:56:40.519Z
Learning: In the Enclave repository, the hard-coded Hardhat development private key `0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80` is acceptable in template README files and documentation for local testing/interaction purposes.

Applied to files:

  • templates/default/README.md
🪛 Gitleaks (8.28.0)
templates/default/README.md

[high] 124-124: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: test_enclave_init
  • GitHub Check: crisp_e2e
  • GitHub Check: build_sdk
  • GitHub Check: test_contracts
  • GitHub Check: test_net
  • GitHub Check: integration_prebuild
  • GitHub Check: rust_unit

Comment thread templates/default/README.md
@vercel vercel Bot temporarily deployed to Preview – enclave-docs October 10, 2025 14:43 Inactive
@vercel vercel Bot temporarily deployed to Preview – crisp October 10, 2025 14:43 Inactive
@0xjei 0xjei enabled auto-merge (squash) October 10, 2025 16:33
@vercel vercel Bot temporarily deployed to Preview – crisp October 10, 2025 16:34 Inactive
@vercel vercel Bot temporarily deployed to Preview – enclave-docs October 10, 2025 16:34 Inactive
@0xjei 0xjei merged commit db16397 into main Oct 10, 2025
20 checks passed
ctrlc03 pushed a commit that referenced this pull request Oct 11, 2025
* update docs for template

* Update templates/default/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update templates/default/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix typo

* make explicit that risc0 is optional in dev mode

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update README.md for template

3 participants