Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

miller loop #14

@zlemon819

Description

@zlemon819

Hi, i have a question about the miller loop implementation in the bn128_pairing.py file.

From article(https://eprint.iacr.org/2019/077.pdf), your code excluded blow lines seems to be the classic miller loop,

# assert R == multiply(Q, ate_loop_count)                                                                      
Q1 = (Q[0] ** field_modulus, Q[1] ** field_modulus)
# assert is_on_curve(Q1, b12)
nQ2 = (Q1[0] ** field_modulus, -Q1[1] ** field_modulus)
# assert is_on_curve(nQ2, b12)
f = f * linefunc(R, Q1, P)
R = add(R, Q1)
f = f * linefunc(R, nQ2, P)
# R = add(R, nQ2) This line is in many specifications but it technically does nothing`

then what is your idea of these adding lines? is that a variant of classic miller loop? Coud you point the paper or source? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions