Skip to content

Commit 62b6b17

Browse files
authored
Announce Trusted Setup V4 ceremony (#794)
* chore(website): add trusted setup ceremony on the website * docs(docs): add trusted setup ceremony instructions on documentation * chore(docs): add candidate plan for prod ceremony re n * fix(docs): rename file to avoid mismatching hyphens * style(website): follow style guide for hover * fix(website): wrong link to ceremony * fix(docs): switch emoji
1 parent 5d513f9 commit 62b6b17

File tree

12 files changed

+110
-10
lines changed

12 files changed

+110
-10
lines changed

apps/docs/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const config: Config = {
6767
announcementBar: {
6868
id: "semaphore-v4-beta",
6969
content:
70-
'<b>Semaphore V4-beta is out 🎉 <a href="/getting-started">Try it out</a> and let us know for any feedback on <a href="https://semaphore.pse.dev/discord" target="_blank">Discord</a> or <a href="https://github.com/orgs/semaphore-protocol/discussions" target="_blank">Github</a>!</b>',
70+
'<b>Semaphore V4-beta is out 🎉 <a href="/getting-started">Try it out</a> and contribute to the <a href="/trusted-setup">Trusted Setup ceremony</a>. Let us know for any feedback on <a href="https://semaphore.pse.dev/discord" target="_blank">Discord</a> or <a href="https://github.com/orgs/semaphore-protocol/discussions" target="_blank">Github</a>!</b>',
7171
backgroundColor: "#dde6fc",
7272
textColor: "#000000"
7373
},

apps/docs/versioned_docs/version-V4-beta/credits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 11
2+
sidebar_position: 12
33
---
44

55
# Credits

apps/docs/versioned_docs/version-V4-beta/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 10
2+
sidebar_position: 11
33
---
44

55
# FAQ

apps/docs/versioned_docs/version-V4-beta/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 7
2+
sidebar_position: 8
33
---
44

55
# Glossary

apps/docs/versioned_docs/version-V4-beta/resources.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 8
2+
sidebar_position: 9
33
---
44

55
import Articles from '@site/src/components/Articles';

apps/docs/versioned_docs/version-V4-beta/subgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 6
2+
sidebar_position: 7
33
---
44

55
import RemoteCode from '@site/src/components/RemoteCode';

apps/docs/versioned_docs/version-V4-beta/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 9
2+
sidebar_position: 10
33
---
44

55
import Tabs from "@theme/Tabs"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
sidebar_position: 6
3+
---
4+
5+
# Trusted Setup
6+
7+
gm, everyone 😎 we are excited to announce the upcoming Multi-Party Computation (MPC) Phase 2 Trusted Setup ceremony for the Semaphore V4 circuit - this is crucial for establishing a robust security foundation for the cryptographic protocol 🎉
8+
9+
The ceremony will take place from **June 10** to **July 10**. If all goes to plan, finalization should take place on **July 15** with the announcement of the final beacon on **July 12**.
10+
11+
## Securing Semaphore V4
12+
13+
To contribute to this ceremony, you will just need your browser!
14+
15+
1. Visit [ceremony.pse.dev](https://ceremony.pse.dev/projects/Semaphore%20V4%20Ceremony).
16+
2. Login and associate your **Github** account.
17+
3. Hit the `contribute` button and wait for your turn.
18+
19+
nb. you will find your contribution certificate on your GitHub gists - and, if all goes wrong or you feel lost, there are instructions on site or post a message on Semaphore / PSE discord.
20+
21+
## What You Need to Know About the Ceremony
22+
23+
### Your Role
24+
25+
Many zero-knowledge proof systems, including those based on the Groth16 scheme, require this layer of randomness, often referred to as "toxic waste” which must remain unknown to anyone to maintain the integrity of the zero-knowledge proof system. Trusted setups rely on a 1 of N honest participant assumption. As long as just one participant actually discards their “toxic waste”, the proof system will be secure. You can be that one participant by providing your unique entropy with your contribution, making the ceremony unpredictable and unbiased, safeguarding the entire process against potential vulnerabilities.
26+
27+
### Why It Matters
28+
29+
Trusted setups are crucial as they generate a set of parameters necessary to initiate SNARK-based systems. Through a series of computations performed by various participants. This sequence involves downloading previous contributions, adding generated randomness, and uploading the results of your contribution. These contributions are then integrated into the final artifacts crucial for proof generation/verification.
30+
31+
### Semaphore Circuit
32+
33+
The [Semaphore circuit](https://github.com/semaphore-protocol/semaphore/blob/main/packages/circuits/src/semaphore.circom) centered around the creation of the _Semaphore identity_ and _identity commitment_, includes verification processes, and facilitates the generation of the _nullifier_. We are going to support `MAX_DEPTH` from 1 to 32 - therefore you will have to contribute to 32 variants of the same circuit. Since the constraints will range from 2k to less than 10k with very small artifacts size (≤ 8mb x contribution), the waiting and contribution time shouldn’t be much!
34+
35+
### Transparency and Fairness
36+
37+
We are committed to transparency on ceremony setup, execution, finalization, and later verification. Our primary goal is to **engage as many contributors as possible** to ensure the circuit is **secure** and **production-ready**. To this end, the ceremony is designed to _maximize contributor inclusion_, monitor & troubleshoot whenever is needed, _lower the entry barriers_, _making contributiong as effortless as possible_. A key step towards achieving these goals is running the ceremony w/ [p0tion](https://github.com/privacy-scaling-explorations/p0tion): an in-house developed, open-source, battle-tested tool that is fully equipped to meet our needs.
38+
39+
### Ceremony Settings
40+
41+
To protect the ceremony from sybils, in order to contribute you must have a GitHub account such that you have: 1 public repository, at least 1 follower, following at least 5 other accounts and, your account is at least 1 month old. While to protect from fake contributors or people hanging due to connection/machine resources, we are going to set a 10 minutes time-window on contributions (+ 1 hour verification) - after this amount of time, you will be kicked out and will have to wait **1 day** before you can contribute again.
42+
43+
## Troubleshooting
44+
45+
- If you have been idle longer than expected, it may be that the current contributor has been blocked for some reason. Do not worry, the maximum wait in this case is one hour, after which you will be able to continue contributing.
46+
47+
### Learn more about Trusted Setups
48+
49+
- [How Do Trusted Setups Work? - Vitalik](https://vitalik.eth.limo/general/2022/03/14/trustedsetup.html)
50+
- [p0tion FAQs](https://p0tion.super.site/faqs#block-cebca23ebb514c2ea096ad44d4833356)

apps/website/src/app/layout.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Box, Container } from "@chakra-ui/react"
1+
import { Box, Container, Link } from "@chakra-ui/react"
22
import type { Metadata } from "next"
33
import Script from "next/script"
44
import Footer from "../components/Footer"
55
import Navbar from "../components/Navbar"
66
import Providers from "./providers"
7+
import Banner from "@/components/Banner"
78

89
export const metadata: Metadata = {
910
title: "Semaphore",
@@ -30,9 +31,24 @@ export default function RootLayout({ children }: { children: React.ReactNode })
3031
<html lang="en" suppressHydrationWarning>
3132
<body suppressHydrationWarning>
3233
<Providers>
34+
<Banner>
35+
Semaphore V4
36+
<Link
37+
_hover={{
38+
textDecoration: "underline",
39+
textDecorationColor: "primary.600"
40+
}}
41+
href="https://ceremony.pse.dev/projects/Semaphore%20V4%20Ceremony"
42+
ml="1"
43+
isExternal
44+
>
45+
<b>Trusted Setup</b>
46+
</Link>{" "}
47+
ceremony is open for contributions until <b>July 10</b>.
48+
</Banner>
3349
<Navbar />
3450
<Container maxW="1440px" px={{ base: "5", md: "10" }}>
35-
<Box h="96px" />
51+
<Box h="146px" /> {/* Adjusted to account for TopBanner and Navbar */}
3652
{children}
3753
<Footer />
3854
</Container>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Box, Text } from "@chakra-ui/react"
2+
3+
interface BannerProps {
4+
children: React.ReactNode
5+
}
6+
7+
export default function Banner({ children }: BannerProps) {
8+
return (
9+
<Box
10+
bg="darkBlueBg"
11+
py="3"
12+
textAlign="center"
13+
borderBottom="1px solid"
14+
color="text"
15+
fontSize="sm"
16+
position="fixed"
17+
top="0"
18+
left="0"
19+
right="0"
20+
zIndex="2"
21+
display="flex"
22+
justifyContent="center"
23+
alignItems="center"
24+
>
25+
<Text>{children}</Text>
26+
</Box>
27+
)
28+
}

0 commit comments

Comments
 (0)