Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation - Folder organization for Centralized docs #89

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/centralized_telescope/main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Telescope - Construction with Bounded DFS
This is the main page of centralized documentation.
It will include a generic explanation of the protocol.
3 changes: 3 additions & 0 deletions docs/centralized_telescope/params.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Parameters
It will include the documentation of the implementation related to `params`.
It also will cover the parameter derivation.
2 changes: 2 additions & 0 deletions docs/centralized_telescope/proof.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Proof
It will include the documentation of the implementation related to `proof`.
2 changes: 2 additions & 0 deletions docs/centralized_telescope/round.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Round
It will include the documentation of the implementation related to `round`.
2 changes: 2 additions & 0 deletions src/centralized_telescope/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! ALBA's bounded DFS scheme using Blake2b as hash function.
//! (c.f. Section 3.2.2 of Alba paper)

#![doc = include_str!("../../docs/centralized_telescope/main.md")]

mod algorithm;

pub mod init;
Expand Down
2 changes: 2 additions & 0 deletions src/centralized_telescope/params.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! ALBA's Setup structure

#![doc = include_str!("../../docs/centralized_telescope/params.md")]

/// Setup input parameters
#[derive(Debug, Clone, Copy)]
pub struct Params {
Expand Down
2 changes: 2 additions & 0 deletions src/centralized_telescope/proof.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! ALBA's Proof structure

#![doc = include_str!("../../docs/centralized_telescope/proof.md")]

use crate::utils::types::Element;

/// Alba proof
Expand Down
2 changes: 2 additions & 0 deletions src/centralized_telescope/round.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! ALBA's Round structure and associated functions

#![doc = include_str!("../../docs/centralized_telescope/round.md")]

use super::types::Hash;
use crate::utils::sample;
use crate::utils::types::Element;
Expand Down
12 changes: 12 additions & 0 deletions src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@

#[doc = include_str!("../docs/varmap.md")]
pub mod variables {}

#[doc = include_str!("../docs/centralized_telescope/main.md")]
pub mod centralized {
#[doc = include_str!("../docs/centralized_telescope/params.md")]
pub mod params {}

#[doc = include_str!("../docs/centralized_telescope/proof.md")]
pub mod proof {}

#[doc = include_str!("../docs/centralized_telescope/round.md")]
pub mod round {}
}
Loading