Skip to content

Commit

Permalink
added subsection about example of F p
Browse files Browse the repository at this point in the history
  • Loading branch information
martawleklinska committed Aug 16, 2024
1 parent e236cf1 commit d1c4216
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion zkmarek/video/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@

EPISODE4 = [
Episode3Reference(),
TitleSlide("Polynomials", subtitle="KZG: Kate, Zaverucha and Goldberg", sound="data/sound/e4/slide0-4.mp3", wait_time=5),
TitleSlide("Polynomials", sound="data/sound/e4/slide0-4.mp3", wait_time=5),
Polynomials(),
TitleSlide("Commitments", wait_time=1.5),
Commitment(),
# PolynomialCommitment(),
Proof1(),
Expand Down
12 changes: 6 additions & 6 deletions zkmarek/video/slides/e4/polynomials.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def __init__(self):
super().__init__("Polynomials")

def construct(self):
self.chart = DiscreetePolynomialChart(5, poly)
self.chart.to_edge(LEFT).scale(0.8).shift(UP*0.5)
self.chart1 = DiscreetePolynomialChart(5, poly)
self.chart1.to_edge(LEFT).scale(0.8).shift(UP*0.5)
self.title_label = Text("Polynomials", color = PRIMARY_COLOR, font = PRIMARY_FONT, font_size = 40).to_edge(UP)
self.x = MathTex(r"x", color = PRIMARY_COLOR, font_size=70)

Expand Down Expand Up @@ -205,14 +205,14 @@ def animate_in(self, scene):
scene.wait(2)
scene.play(FadeOut(self.intersect_sub))
scene.wait(2)
scene.play(FadeOut(self.chart.graph3, self.chart.ax, self.chart.labels, self.title_label, self.line_subtract, self.minus, self.subtract_z, self.quotient_z, self.polynomial_z))

self.new_subsection(scene, "finite fields", "data/sound/e4/slide1-6.mp3")
self.chart.gen_points()
self.chart1.gen_points()
scene.play(FadeIn(self.chart))
self.chart.add_xaxis_label(self.z.value, r"z")
self.chart1.add_xaxis_label(self.z.value, r"z")

def animate_out(self, scene):
scene.play(FadeOut(self.chart.graph3, self.chart.ax, self.chart.labels, self.title_label, self.line_subtract, self.minus, self.subtract_z, self.quotient_z, self.polynomial_z))
self.new_subsection(scene, "example of finite field", "data/sound/e4/slide1-7.mp3")

def animate_random_number(self, scene):
first_number = random.randint(1, 20)
Expand Down

0 comments on commit d1c4216

Please sign in to comment.