Skip to content

Commit

Permalink
docs(baby-jubjub): fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinoCribioli committed Sep 11, 2024
1 parent fc0f3b8 commit 8127d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/baby-jubjub/src/baby-jubjub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export function addPoint(p1: Point<bigint>, p2: Point<bigint>): Point<bigint> {
* it to itself 'e' times.
* This works given the following invariant: At each step, R0 will be r_0*base where r_0 is the prefix of e
* written in binary and R1 will be (r_0+1)*base. In other words: at iteration i of the loop, r_0's binary
* representation will be the first i+1 bits of e. If the upcoming bit is a 0, we just have to double R0
* and add R0 to R1 to maintain the invariant. If it is a 1, we have to double R0 and add 1*base
* representation will be the first i+1 most significant bits of e. If the upcoming bit is a 0, we just have to
* double R0 and add R0 to R1 to maintain the invariant. If it is a 1, we have to double R0 and add 1*base
* (or add R1, which is the same as (r_0+1)*base), and double R1 to maintain the invariant.
* @param base The base point used as a starting point.
* @param e A secret number representing the private key.
Expand Down

0 comments on commit 8127d10

Please sign in to comment.