Skip to content
This repository was archived by the owner on Aug 19, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/actions/.env.default
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FIREBASE_MESSAGING_SENDER_ID="YOUR-MESSAGING-SENDER-ID"
# nb. this is going to be auto-generated when creating a new application.
FIREBASE_APP_ID="YOUR-APP-ID"
# The Firebase Cloud Function direct URL to call verifycontribution() V2 CF.
# nb. this is necessary due to Version 2 of Cloud Functions which requires direct link to enble HTTPs callable functionalities.
# nb. this is necessary due to Version 2 of Cloud Functions which requires direct link to enable HTTPs callable functionalities.
FIREBASE_CF_URL_VERIFY_CONTRIBUTION="YOUR-VERIFY-CONTRIBUTION-CF-URL"

### AWS S3 STORAGE ###
Expand All @@ -29,7 +29,7 @@ FIREBASE_CF_URL_VERIFY_CONTRIBUTION="YOUR-VERIFY-CONTRIBUTION-CF-URL"

# The chunk size to be used when executing multi-part upload or downloads.
# default 50 MBs.
# (e.g. a 200 MB file setting a stream chunk size of 50 MB is going to be splitted and uploaded/downloaded in 4 chunks).
# (e.g. a 200 MB file setting a stream chunk size of 50 MB is going to be split and uploaded/downloaded in 4 chunks).
CONFIG_STREAM_CHUNK_SIZE_IN_MB=50
# The postfix string for each ceremony bucket.
# default "-ph2-ceremony"
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/helpers/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const toHexByte = (byte: number) => (byte < 0x10 ? `0${byte.toString(16)}` : byt

/**
* Converts Uint8Array to hexadecimal string.
* @param buffer arbritrary length of data
* @param buffer arbitrary length of data
* @returns hexadecimal string
*/
export const toHex = (buffer: Uint8Array): string => Array.from(buffer).map(toHexByte).join("")
Expand Down
6 changes: 3 additions & 3 deletions packages/actions/src/helpers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getBucketName = (ceremonyPrefix: string, ceremonyPostfix: string):
* @param objectKey <string> - the unique key to identify the object inside the given AWS S3 bucket.
* @param localFilePath <string> - the local path where the artifact will be downloaded.
* @param uploadId <string> - the unique identifier of the multi-part upload.
* @param configStreamChunkSize <number> - size of each chunk into which the artifact is going to be splitted (nb. will be converted in MB).
* @param configStreamChunkSize <number> - size of each chunk into which the artifact is going to be split (nb. will be converted in MB).
* @param [ceremonyId] <string> - the unique identifier of the ceremony.
* @returns Promise<Array<ChunkWithUrl>> - the chunks with related pre-signed url.
*/
Expand Down Expand Up @@ -156,7 +156,7 @@ export const uploadParts = async (
* @param bucketName <string> - the name of the ceremony artifacts bucket (AWS S3).
* @param objectKey <string> - the unique key to identify the object inside the given AWS S3 bucket.
* @param localPath <string> - the local path where the artifact will be downloaded.
* @param configStreamChunkSize <number> - size of each chunk into which the artifact is going to be splitted (nb. will be converted in MB).
* @param configStreamChunkSize <number> - size of each chunk into which the artifact is going to be split (nb. will be converted in MB).
* @param [ceremonyId] <string> - the unique identifier of the ceremony (used as a double-edge sword - as identifier and as a check if current contributor is the coordinator finalizing the ceremony).
* @param [temporaryDataToResumeMultiPartUpload] <TemporaryParticipantContributionData> - the temporary information necessary to resume an already started multi-part upload.
* @param logger <GenericBar> - an optional logger to show progress.
Expand Down Expand Up @@ -246,7 +246,7 @@ export const downloadCeremonyArtifact = async (

if (response.status !== 200 && !response.ok)
throw new Error(
`There was an erorr while downloading the object ${storagePath} from the bucket ${bucketName}. Please check the function inputs and try again.`
`There was an error while downloading the object ${storagePath} from the bucket ${bucketName}. Please check the function inputs and try again.`
)

const content: any = response.body
Expand Down
2 changes: 1 addition & 1 deletion packages/phase2cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ program.name(name).description(description).version(version)
program.command("auth").description("authenticate yourself using your Github account (OAuth 2.0)").action(auth)
program
.command("auth-bandada")
.description("authenticate yourself in a privacy-perserving manner using Bandada")
.description("authenticate yourself in a privacy-preserving manner using Bandada")
.action(authBandada)
program
.command("auth-siwe")
Expand Down