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

What is method g(&self) in calculating? #30

Open
qxzhou1010 opened this issue Dec 18, 2023 · 0 comments
Open

What is method g(&self) in calculating? #30

qxzhou1010 opened this issue Dec 18, 2023 · 0 comments

Comments

@qxzhou1010
Copy link

In path sdk/lib/spiral-rs/src/params.rs, there is a function g:

    pub fn g(&self) -> usize {
        let num_bits_to_gen = self.t_gsw * self.db_dim_2 + self.num_expanded();
        log2_ceil_usize(num_bits_to_gen)
    }

According to the paper, this most likely corresponds to page-18, $r_1$ in equation (4.1).

In the paper, $r_1 = 1 + v_1$. However, the calculations here in the code look much more complicated: $$ceil( \log_2( t_{GSW} * v_2 + 2^{v_1}))$$.

This is inconsistent with the paper. Please tell me what the function g(&self) here is calculating and which part of the paper it corresponds to.

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

No branches or pull requests

1 participant