Skip to content

Commit

Permalink
added slides to next episode, added sound to trusted setup and ceremony
Browse files Browse the repository at this point in the history
  • Loading branch information
martawleklinska committed Jul 16, 2024
1 parent 5bf12d6 commit f6c36e6
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 6 deletions.
Binary file added data/sound/episode3/slide3-0.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide4-0.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide4-1.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide4-2.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide4-3.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide4-4.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide5-0.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide5-1.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide5-2.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide5-3.mp3
Binary file not shown.
Binary file added data/sound/episode3/slide5-4.mp3
Binary file not shown.
8 changes: 4 additions & 4 deletions zkmarek/video/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,17 @@
Ceremony(),
CeremonyVerification(),
CeremonyVerification2(),
TitleSlide("KZG", subtitle="Kate, Zaverucha and Goldberg"),
PolynomialCommitment(),
KZG(),
Verkle(),
Subscribe("data/sound/episode1/s28.wav"),
Credits2(),
]

EPISODE4 = [
# Intro("data/sound/episode2/slide1-0.mp3"),
# Sponsored(),
TitleSlide("KZG", subtitle="Kate, Zaverucha and Goldberg"),
PolynomialCommitment(),
KZG(),
Verkle(),
Verkle(),
Subscribe("data/sound/episode1/s28.wav"),
]
Expand Down
5 changes: 5 additions & 0 deletions zkmarek/video/slides/episode3/ceremony.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ def construct(self):
self.tau.next_to(self.vector_k, DOWN, buff=0.5)

def animate_in(self, scene):
self.new_subsection(scene, "ceremony intro", "data/sound/episode3/slide5-0.mp3")
scene.play(Write(self.title_label))
scene.play(Write(self.tau_0))
self.new_subsection(scene, "first participant", "data/sound/episode3/slide5-1.mp3")
scene.play(Write(self.vector_0))
scene.play(Write(self.tau_1))
self.new_subsection(scene, "beginning of ceremony", "data/sound/episode3/slide5-2.mp3")
scene.play(Write(self.vector_1))
scene.play(Write(self.three_dot))
self.new_subsection(scene, "next participant", "data/sound/episode3/slide5-3.mp3")
scene.play(Write(self.tau_k))
scene.play(Write(self.vector_k))
self.new_subsection(scene, "conclusion of ceremony", "data/sound/episode3/slide5-4.mp3")
scene.play(Write(self.tau))
scene.wait(2)
4 changes: 3 additions & 1 deletion zkmarek/video/slides/episode3/introduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ def animate_in(self, scene):

self.new_subsection(scene, "any polynomial", "data/sound/episode3/slide1-2.mp3")
self.person_wthumb.generate_target()
self.person_wthumb.target.shift(RIGHT*2+DOWN*2).scale(2)
self.person_wthumb.target.shift(RIGHT*2.5+DOWN).scale(2)
scene.play(MoveToTarget(self.person_wthumb))
scene.play(FadeIn(self.polynomial))
scene.wait(0.5)
scene.play(FadeIn(self.polynomial1))
scene.wait(1.5)

def animate_out(self, scene):
scene.play(FadeOut(self.person_wthumb, self.polynomial, self.polynomial1))
Expand Down
9 changes: 8 additions & 1 deletion zkmarek/video/slides/episode3/trusted_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from manim import LEFT, RIGHT, DOWN, UP, MathTex, Tex, Text, Write, Line
from manim import LEFT, RIGHT, DOWN, UP, MathTex, Tex, Text, Write, Line, FadeOut

from zkmarek.video.constant import PRIMARY_COLOR, PRIMARY_FONT, SECONDARY_COLOR
from zkmarek.video.mobjects.tex_array import TexArray
Expand Down Expand Up @@ -64,12 +64,19 @@ def construct(self):
end=self.tau.get_critical_point(RIGHT), color=SECONDARY_COLOR)

def animate_in(self, scene):
self.new_subsection(scene, "intro to trusted setup", "data/sound/episode3/slide4-0.mp3")
scene.play(Write(self.title_label))
scene.play(Write(self.tau))
self.new_subsection(scene, "tau", "data/sound/episode3/slide4-1.mp3")
scene.play(Write(self.vector_g1))
self.vector_g1.animate_transform_matching_shapes(scene, SETUP_G1_2)
self.new_subsection(scene, "multiplying by G1", "data/sound/episode3/slide4-2.mp3")
scene.play(Write(self.vector_g2))
scene.play(Write(self.strike))
self.new_subsection(scene, "multiplying by G2", "data/sound/episode3/slide4-3.mp3")
self.vector_g1.animate_transform_matching_shapes(scene, SETUP_G1_3)
self.vector_g2.animate_transform_matching_shapes(scene, SETUP_G2_2)
self.new_subsection(scene, "there are ec points", "data/sound/episode3/slide4-4.mp3")
scene.wait(5)


0 comments on commit f6c36e6

Please sign in to comment.