@devtion/actions 0.0.0-270e9e0 → 0.0.0-2ed8e18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +103 -110
- package/dist/index.node.js +102 -109
- package/dist/types/src/helpers/constants.d.ts +6 -0
- package/dist/types/src/helpers/constants.d.ts.map +1 -1
- package/dist/types/src/helpers/security.d.ts +2 -2
- package/dist/types/src/helpers/security.d.ts.map +1 -1
- package/dist/types/src/helpers/utils.d.ts.map +1 -1
- package/dist/types/src/helpers/vm.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/package.json +2 -6
- package/src/helpers/constants.ts +7 -1
- package/src/helpers/functions.ts +1 -1
- package/src/helpers/security.ts +28 -50
- package/src/helpers/services.ts +1 -1
- package/src/helpers/utils.ts +77 -83
- package/src/helpers/vm.ts +9 -3
- package/src/index.ts +2 -2
- package/src/types/index.ts +9 -5
package/dist/index.node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @module @
|
|
3
|
-
* @version 1.0.
|
|
2
|
+
* @module @devtion/actions
|
|
3
|
+
* @version 1.0.9
|
|
4
4
|
* @file A set of actions and helpers for CLI commands
|
|
5
5
|
* @copyright Ethereum Foundation 2022
|
|
6
6
|
* @license MIT
|
|
@@ -19,7 +19,6 @@ var crypto = require('crypto');
|
|
|
19
19
|
var blake = require('blakejs');
|
|
20
20
|
var ffjavascript = require('ffjavascript');
|
|
21
21
|
var winston = require('winston');
|
|
22
|
-
var clientS3 = require('@aws-sdk/client-s3');
|
|
23
22
|
var stream = require('stream');
|
|
24
23
|
var util = require('util');
|
|
25
24
|
var app = require('firebase/app');
|
|
@@ -246,6 +245,12 @@ const commonTerms = {
|
|
|
246
245
|
verificationStartedAt: "verificationStartedAt"
|
|
247
246
|
}
|
|
248
247
|
},
|
|
248
|
+
avatars: {
|
|
249
|
+
name: "avatars",
|
|
250
|
+
fields: {
|
|
251
|
+
avatarUrl: "avatarUrl"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
249
254
|
ceremonies: {
|
|
250
255
|
name: "ceremonies",
|
|
251
256
|
fields: {
|
|
@@ -336,7 +341,7 @@ const commonTerms = {
|
|
|
336
341
|
finalizeCircuit: "finalizeCircuit",
|
|
337
342
|
finalizeCeremony: "finalizeCeremony",
|
|
338
343
|
downloadCircuitArtifacts: "downloadCircuitArtifacts",
|
|
339
|
-
transferObject: "transferObject"
|
|
344
|
+
transferObject: "transferObject"
|
|
340
345
|
}
|
|
341
346
|
};
|
|
342
347
|
|
|
@@ -1054,7 +1059,8 @@ const parseCeremonyFile = async (path, cleanup = false) => {
|
|
|
1054
1059
|
// read the data
|
|
1055
1060
|
const data = JSON.parse(fs.readFileSync(path).toString());
|
|
1056
1061
|
// verify that the data is correct
|
|
1057
|
-
if (data[
|
|
1062
|
+
if (data["timeoutMechanismType"] !== "DYNAMIC" /* CeremonyTimeoutType.DYNAMIC */ &&
|
|
1063
|
+
data["timeoutMechanismType"] !== "FIXED" /* CeremonyTimeoutType.FIXED */)
|
|
1058
1064
|
throw new Error("Invalid timeout type. Please choose between DYNAMIC and FIXED.");
|
|
1059
1065
|
// validate that we have at least 1 circuit input data
|
|
1060
1066
|
if (!data.circuits || data.circuits.length === 0)
|
|
@@ -1087,42 +1093,26 @@ const parseCeremonyFile = async (path, cleanup = false) => {
|
|
|
1087
1093
|
circuitArtifacts.push({
|
|
1088
1094
|
artifacts: artifacts
|
|
1089
1095
|
});
|
|
1090
|
-
const r1csPath = artifacts.r1csStoragePath;
|
|
1091
|
-
const wasmPath = artifacts.wasmStoragePath;
|
|
1092
1096
|
// where we storing the r1cs downloaded
|
|
1093
1097
|
const localR1csPath = `./${circuitData.name}.r1cs`;
|
|
1094
|
-
//
|
|
1095
|
-
|
|
1096
|
-
// just the correct region
|
|
1097
|
-
const s3 = new clientS3.S3Client({ region: artifacts.region });
|
|
1098
|
-
try {
|
|
1099
|
-
await s3.send(new clientS3.HeadObjectCommand({
|
|
1100
|
-
Bucket: artifacts.bucket,
|
|
1101
|
-
Key: r1csPath
|
|
1102
|
-
}));
|
|
1103
|
-
}
|
|
1104
|
-
catch (error) {
|
|
1105
|
-
throw new Error(`The r1cs file (${r1csPath}) seems to not exist. Please ensure this is correct and that the object is publicly available.`);
|
|
1106
|
-
}
|
|
1107
|
-
try {
|
|
1108
|
-
await s3.send(new clientS3.HeadObjectCommand({
|
|
1109
|
-
Bucket: artifacts.bucket,
|
|
1110
|
-
Key: wasmPath
|
|
1111
|
-
}));
|
|
1112
|
-
}
|
|
1113
|
-
catch (error) {
|
|
1114
|
-
throw new Error(`The wasm file (${wasmPath}) seems to not exist. Please ensure this is correct and that the object is publicly available.`);
|
|
1115
|
-
}
|
|
1098
|
+
// where we storing the wasm downloaded
|
|
1099
|
+
const localWasmPath = `./${circuitData.name}.wasm`;
|
|
1116
1100
|
// download the r1cs to extract the metadata
|
|
1117
|
-
const command = new clientS3.GetObjectCommand({ Bucket: artifacts.bucket, Key: artifacts.r1csStoragePath });
|
|
1118
|
-
const response = await s3.send(command);
|
|
1119
1101
|
const streamPipeline = util.promisify(stream.pipeline);
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1102
|
+
// Make the call.
|
|
1103
|
+
const responseR1CS = await fetch(artifacts.r1csStoragePath);
|
|
1104
|
+
// Handle errors.
|
|
1105
|
+
if (!responseR1CS.ok && responseR1CS.status !== 200)
|
|
1106
|
+
throw new Error(`There was an error while trying to download the r1cs file for circuit ${circuitData.name}. Please check that the file has the correct permissions (public) set.`);
|
|
1107
|
+
await streamPipeline(responseR1CS.body, fs.createWriteStream(localR1csPath));
|
|
1108
|
+
// Write the file locally
|
|
1124
1109
|
// extract the metadata from the r1cs
|
|
1125
1110
|
const metadata = getR1CSInfo(localR1csPath);
|
|
1111
|
+
// download wasm too to ensure it's available
|
|
1112
|
+
const responseWASM = await fetch(artifacts.wasmStoragePath);
|
|
1113
|
+
if (!responseWASM.ok && responseWASM.status !== 200)
|
|
1114
|
+
throw new Error(`There was an error while trying to download the WASM file for circuit ${circuitData.name}. Please check that the file has the correct permissions (public) set.`);
|
|
1115
|
+
await streamPipeline(responseWASM.body, fs.createWriteStream(localWasmPath));
|
|
1126
1116
|
// validate that the circuit hash and template links are valid
|
|
1127
1117
|
const template = circuitData.template;
|
|
1128
1118
|
const URLMatch = template.source.match(urlPattern);
|
|
@@ -1140,7 +1130,7 @@ const parseCeremonyFile = async (path, cleanup = false) => {
|
|
|
1140
1130
|
const wasmCompleteFilename = `${circuitData.name}.wasm`;
|
|
1141
1131
|
const smallestPowersOfTauCompleteFilenameForCircuit = `${potFilenameTemplate}${doubleDigitsPowers}.ptau`;
|
|
1142
1132
|
const firstZkeyCompleteFilename = `${circuitPrefix}_${genesisZkeyIndex}.zkey`;
|
|
1143
|
-
// storage paths
|
|
1133
|
+
// storage paths
|
|
1144
1134
|
const r1csStorageFilePath = getR1csStorageFilePath(circuitPrefix, r1csCompleteFilename);
|
|
1145
1135
|
const wasmStorageFilePath = getWasmStorageFilePath(circuitPrefix, wasmCompleteFilename);
|
|
1146
1136
|
const potStorageFilePath = getPotStorageFilePath(smallestPowersOfTauCompleteFilenameForCircuit);
|
|
@@ -1156,7 +1146,7 @@ const parseCeremonyFile = async (path, cleanup = false) => {
|
|
|
1156
1146
|
initialZkeyStoragePath: zkeyStorageFilePath,
|
|
1157
1147
|
r1csBlake2bHash: r1csBlake2bHash
|
|
1158
1148
|
};
|
|
1159
|
-
// validate that the compiler hash is a valid hash
|
|
1149
|
+
// validate that the compiler hash is a valid hash
|
|
1160
1150
|
const compiler = circuitData.compiler;
|
|
1161
1151
|
const compilerHashMatch = compiler.commitHash.match(commitHashPattern);
|
|
1162
1152
|
if (!compilerHashMatch || compilerHashMatch.length === 0 || compilerHashMatch.length > 1)
|
|
@@ -1170,39 +1160,58 @@ const parseCeremonyFile = async (path, cleanup = false) => {
|
|
|
1170
1160
|
// check that the timeout is provided for the correct configuration
|
|
1171
1161
|
let dynamicThreshold;
|
|
1172
1162
|
let fixedTimeWindow;
|
|
1163
|
+
let circuit = {};
|
|
1173
1164
|
if (data.timeoutMechanismType === "DYNAMIC" /* CeremonyTimeoutType.DYNAMIC */) {
|
|
1174
1165
|
if (circuitData.dynamicThreshold <= 0)
|
|
1175
1166
|
throw new Error("The dynamic threshold should be > 0.");
|
|
1176
1167
|
dynamicThreshold = circuitData.dynamicThreshold;
|
|
1168
|
+
// the Circuit data for the ceremony setup
|
|
1169
|
+
circuit = {
|
|
1170
|
+
name: circuitData.name,
|
|
1171
|
+
description: circuitData.description,
|
|
1172
|
+
prefix: circuitPrefix,
|
|
1173
|
+
sequencePosition: i + 1,
|
|
1174
|
+
metadata: metadata,
|
|
1175
|
+
files: files,
|
|
1176
|
+
template: template,
|
|
1177
|
+
compiler: compiler,
|
|
1178
|
+
verification: verification,
|
|
1179
|
+
dynamicThreshold: dynamicThreshold,
|
|
1180
|
+
avgTimings: {
|
|
1181
|
+
contributionComputation: 0,
|
|
1182
|
+
fullContribution: 0,
|
|
1183
|
+
verifyCloudFunction: 0
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1177
1186
|
}
|
|
1178
1187
|
if (data.timeoutMechanismType === "FIXED" /* CeremonyTimeoutType.FIXED */) {
|
|
1179
1188
|
if (circuitData.fixedTimeWindow <= 0)
|
|
1180
1189
|
throw new Error("The fixed time window threshold should be > 0.");
|
|
1181
1190
|
fixedTimeWindow = circuitData.fixedTimeWindow;
|
|
1191
|
+
// the Circuit data for the ceremony setup
|
|
1192
|
+
circuit = {
|
|
1193
|
+
name: circuitData.name,
|
|
1194
|
+
description: circuitData.description,
|
|
1195
|
+
prefix: circuitPrefix,
|
|
1196
|
+
sequencePosition: i + 1,
|
|
1197
|
+
metadata: metadata,
|
|
1198
|
+
files: files,
|
|
1199
|
+
template: template,
|
|
1200
|
+
compiler: compiler,
|
|
1201
|
+
verification: verification,
|
|
1202
|
+
fixedTimeWindow: fixedTimeWindow,
|
|
1203
|
+
avgTimings: {
|
|
1204
|
+
contributionComputation: 0,
|
|
1205
|
+
fullContribution: 0,
|
|
1206
|
+
verifyCloudFunction: 0
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1182
1209
|
}
|
|
1183
|
-
// the Circuit data for the ceremony setup
|
|
1184
|
-
const circuit = {
|
|
1185
|
-
name: circuitData.name,
|
|
1186
|
-
description: circuitData.description,
|
|
1187
|
-
prefix: circuitPrefix,
|
|
1188
|
-
sequencePosition: i + 1,
|
|
1189
|
-
metadata: metadata,
|
|
1190
|
-
files: files,
|
|
1191
|
-
template: template,
|
|
1192
|
-
compiler: compiler,
|
|
1193
|
-
verification: verification,
|
|
1194
|
-
fixedTimeWindow: fixedTimeWindow,
|
|
1195
|
-
// dynamicThreshold: dynamicThreshold,
|
|
1196
|
-
avgTimings: {
|
|
1197
|
-
contributionComputation: 0,
|
|
1198
|
-
fullContribution: 0,
|
|
1199
|
-
verifyCloudFunction: 0
|
|
1200
|
-
},
|
|
1201
|
-
};
|
|
1202
1210
|
circuits.push(circuit);
|
|
1203
|
-
// remove the local r1cs
|
|
1211
|
+
// remove the local r1cs and wasm downloads (if used for verifying the config only vs setup)
|
|
1204
1212
|
if (cleanup)
|
|
1205
1213
|
fs.unlinkSync(localR1csPath);
|
|
1214
|
+
fs.unlinkSync(localWasmPath);
|
|
1206
1215
|
}
|
|
1207
1216
|
const setupData = {
|
|
1208
1217
|
ceremonyInputData: {
|
|
@@ -1356,7 +1365,9 @@ const getContributionsValidityForContributor = async (firestoreDatabase, circuit
|
|
|
1356
1365
|
* @param isFinalizing <boolean> - true when the coordinator is finalizing the ceremony, otherwise false.
|
|
1357
1366
|
* @returns <string> - the public attestation preamble.
|
|
1358
1367
|
*/
|
|
1359
|
-
const getPublicAttestationPreambleForContributor = (contributorIdentifier, ceremonyName, isFinalizing) => `Hey, I'm ${contributorIdentifier} and I have ${isFinalizing ? "finalized" : "contributed to"} the ${ceremonyName}
|
|
1368
|
+
const getPublicAttestationPreambleForContributor = (contributorIdentifier, ceremonyName, isFinalizing) => `Hey, I'm ${contributorIdentifier} and I have ${isFinalizing ? "finalized" : "contributed to"} the ${ceremonyName}${ceremonyName.toLowerCase().includes("trusted setup") || ceremonyName.toLowerCase().includes("ceremony")
|
|
1369
|
+
? "."
|
|
1370
|
+
: " MPC Phase2 Trusted Setup ceremony."}\nThe following are my contribution signatures:`;
|
|
1360
1371
|
/**
|
|
1361
1372
|
* Check and prepare public attestation for the contributor made only of its valid contributions.
|
|
1362
1373
|
* @param firestoreDatabase <Firestore> - the Firestore service instance associated to the current Firebase application.
|
|
@@ -1812,7 +1823,7 @@ const getFirestoreDatabase = (app) => firestore.getFirestore(app);
|
|
|
1812
1823
|
* @param app <FirebaseApp> - the Firebase application.
|
|
1813
1824
|
* @returns <Functions> - the Cloud Functions associated to the application.
|
|
1814
1825
|
*/
|
|
1815
|
-
const getFirebaseFunctions = (app) => functions.getFunctions(app,
|
|
1826
|
+
const getFirebaseFunctions = (app) => functions.getFunctions(app, "europe-west1");
|
|
1816
1827
|
/**
|
|
1817
1828
|
* Retrieve the configuration variables for the AWS services (S3, EC2).
|
|
1818
1829
|
* @returns <AWSVariables> - the values of the AWS services configuration variables.
|
|
@@ -2063,55 +2074,27 @@ const verifyCeremony = async (functions, firestore$1, ceremonyPrefix, outputDire
|
|
|
2063
2074
|
};
|
|
2064
2075
|
|
|
2065
2076
|
/**
|
|
2066
|
-
* This function
|
|
2067
|
-
* @param user
|
|
2068
|
-
* @returns
|
|
2069
|
-
*/
|
|
2070
|
-
const getNumberOfPublicReposGitHub = async (user) => {
|
|
2071
|
-
const response = await fetch(`https://api.github.com/user/${user}/repos`, {
|
|
2072
|
-
method: "GET",
|
|
2073
|
-
headers: {
|
|
2074
|
-
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN}`
|
|
2075
|
-
}
|
|
2076
|
-
});
|
|
2077
|
-
if (response.status !== 200)
|
|
2078
|
-
throw new Error("It was not possible to retrieve the number of public repositories. Please try again.");
|
|
2079
|
-
const jsonData = await response.json();
|
|
2080
|
-
return jsonData.length;
|
|
2081
|
-
};
|
|
2082
|
-
/**
|
|
2083
|
-
* This function will return the number of followers of a user
|
|
2084
|
-
* @param user <string> The username of the user
|
|
2085
|
-
* @returns <number> The number of followers
|
|
2086
|
-
*/
|
|
2087
|
-
const getNumberOfFollowersGitHub = async (user) => {
|
|
2088
|
-
const response = await fetch(`https://api.github.com/user/${user}/followers`, {
|
|
2089
|
-
method: "GET",
|
|
2090
|
-
headers: {
|
|
2091
|
-
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN}`
|
|
2092
|
-
}
|
|
2093
|
-
});
|
|
2094
|
-
if (response.status !== 200)
|
|
2095
|
-
throw new Error("It was not possible to retrieve the number of followers. Please try again.");
|
|
2096
|
-
const jsonData = await response.json();
|
|
2097
|
-
return jsonData.length;
|
|
2098
|
-
};
|
|
2099
|
-
/**
|
|
2100
|
-
* This function will return the number of following of a user
|
|
2101
|
-
* @param user <string> The username of the user
|
|
2102
|
-
* @returns <number> The number of following users
|
|
2077
|
+
* This function queries the GitHub API to fetch users statistics
|
|
2078
|
+
* @param user {string} the user uid
|
|
2079
|
+
* @returns {any} the stats from the GitHub API
|
|
2103
2080
|
*/
|
|
2104
|
-
const
|
|
2105
|
-
const response = await fetch(`https://api.github.com/user/${user}
|
|
2081
|
+
const getGitHubStats = async (user) => {
|
|
2082
|
+
const response = await fetch(`https://api.github.com/user/${user}`, {
|
|
2106
2083
|
method: "GET",
|
|
2107
2084
|
headers: {
|
|
2108
2085
|
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN}`
|
|
2109
2086
|
}
|
|
2110
2087
|
});
|
|
2111
2088
|
if (response.status !== 200)
|
|
2112
|
-
throw new Error("It was not possible to retrieve the
|
|
2089
|
+
throw new Error("It was not possible to retrieve the user's statistic. Please try again.");
|
|
2113
2090
|
const jsonData = await response.json();
|
|
2114
|
-
|
|
2091
|
+
const data = {
|
|
2092
|
+
following: jsonData.following,
|
|
2093
|
+
followers: jsonData.followers,
|
|
2094
|
+
publicRepos: jsonData.public_repos,
|
|
2095
|
+
avatarUrl: jsonData.avatar_url
|
|
2096
|
+
};
|
|
2097
|
+
return data;
|
|
2115
2098
|
};
|
|
2116
2099
|
/**
|
|
2117
2100
|
* This function will check if the user is reputable enough to be able to use the app
|
|
@@ -2119,19 +2102,23 @@ const getNumberOfFollowingGitHub = async (user) => {
|
|
|
2119
2102
|
* @param minimumAmountOfFollowing <number> The minimum amount of following the user should have
|
|
2120
2103
|
* @param minimumAmountOfFollowers <number> The minimum amount of followers the user should have
|
|
2121
2104
|
* @param minimumAmountOfPublicRepos <number> The minimum amount of public repos the user should have
|
|
2122
|
-
* @returns <
|
|
2105
|
+
* @returns <any> Return the avatar URL of the user if the user is reputable, false otherwise
|
|
2123
2106
|
*/
|
|
2124
2107
|
const githubReputation = async (userLogin, minimumAmountOfFollowing, minimumAmountOfFollowers, minimumAmountOfPublicRepos) => {
|
|
2125
2108
|
if (!process.env.GITHUB_ACCESS_TOKEN)
|
|
2126
2109
|
throw new Error("The GitHub access token is missing. Please insert a valid token to be used for anti-sybil checks on user registation, and then try again.");
|
|
2127
|
-
const following = await
|
|
2128
|
-
const repos = await getNumberOfPublicReposGitHub(userLogin);
|
|
2129
|
-
const followers = await getNumberOfFollowersGitHub(userLogin);
|
|
2110
|
+
const { following, followers, publicRepos, avatarUrl } = await getGitHubStats(userLogin);
|
|
2130
2111
|
if (following < minimumAmountOfFollowing ||
|
|
2131
|
-
|
|
2112
|
+
publicRepos < minimumAmountOfPublicRepos ||
|
|
2132
2113
|
followers < minimumAmountOfFollowers)
|
|
2133
|
-
return
|
|
2134
|
-
|
|
2114
|
+
return {
|
|
2115
|
+
reputable: false,
|
|
2116
|
+
avatarUrl: ""
|
|
2117
|
+
};
|
|
2118
|
+
return {
|
|
2119
|
+
reputable: true,
|
|
2120
|
+
avatarUrl: avatarUrl
|
|
2121
|
+
};
|
|
2135
2122
|
};
|
|
2136
2123
|
|
|
2137
2124
|
/**
|
|
@@ -2339,8 +2326,13 @@ const vmDependenciesAndCacheArtifactsCommand = (zKeyPath, potPath, snsTopic, reg
|
|
|
2339
2326
|
// eslint-disable-next-line no-template-curly-in-string
|
|
2340
2327
|
"touch ${MARKER_FILE}",
|
|
2341
2328
|
"sudo yum update -y",
|
|
2342
|
-
"curl -
|
|
2343
|
-
"
|
|
2329
|
+
"curl -O https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.xz",
|
|
2330
|
+
"tar -xf node-v16.13.0-linux-x64.tar.xz",
|
|
2331
|
+
"mv node-v16.13.0-linux-x64 nodejs",
|
|
2332
|
+
"sudo mv nodejs /opt/",
|
|
2333
|
+
"echo 'export NODEJS_HOME=/opt/nodejs' >> /etc/profile",
|
|
2334
|
+
"echo 'export PATH=$NODEJS_HOME/bin:$PATH' >> /etc/profile",
|
|
2335
|
+
"source /etc/profile",
|
|
2344
2336
|
"npm install -g snarkjs",
|
|
2345
2337
|
`aws s3 cp s3://${zKeyPath} /var/tmp/genesisZkey.zkey`,
|
|
2346
2338
|
`aws s3 cp s3://${potPath} /var/tmp/pot.ptau`,
|
|
@@ -2359,6 +2351,7 @@ const vmDependenciesAndCacheArtifactsCommand = (zKeyPath, potPath, snsTopic, reg
|
|
|
2359
2351
|
* @returns Array<string> - the list of commands for contribution verification.
|
|
2360
2352
|
*/
|
|
2361
2353
|
const vmContributionVerificationCommand = (bucketName, lastZkeyStoragePath, verificationTranscriptStoragePathAndFilename) => [
|
|
2354
|
+
`source /etc/profile`,
|
|
2362
2355
|
`aws s3 cp s3://${bucketName}/${lastZkeyStoragePath} /var/tmp/lastZKey.zkey > /var/tmp/log.txt`,
|
|
2363
2356
|
`snarkjs zkvi /var/tmp/genesisZkey.zkey /var/tmp/pot.ptau /var/tmp/lastZKey.zkey > /var/tmp/verification_transcript.log`,
|
|
2364
2357
|
`aws s3 cp /var/tmp/verification_transcript.log s3://${bucketName}/${verificationTranscriptStoragePathAndFilename} &>/dev/null`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,+CAA+C,CAAA;AAElF,eAAO,MAAM,mBAAmB,6BAA6B,CAAA;AAE7D,eAAO,MAAM,gBAAgB,UAAU,CAAA;AAEvC,eAAO,MAAM,gBAAgB,KAAK,CAAA;AAElC,eAAO,MAAM,eAAe,UAAU,CAAA;AAEtC,eAAO,MAAM,sBAAsB,UAAU,CAAA;AAE7C,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAE5C,eAAO,MAAM,4BAA4B,aAAa,CAAA;AAEtD,eAAO,MAAM,cAAc,sBAAsB,CAAA;AAEjD,eAAO,MAAM,yBAAyB,iBAAiB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ChC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;GA6G5B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,+CAA+C,CAAA;AAElF,eAAO,MAAM,mBAAmB,6BAA6B,CAAA;AAE7D,eAAO,MAAM,gBAAgB,UAAU,CAAA;AAEvC,eAAO,MAAM,gBAAgB,KAAK,CAAA;AAElC,eAAO,MAAM,eAAe,UAAU,CAAA;AAEtC,eAAO,MAAM,sBAAsB,UAAU,CAAA;AAE7C,eAAO,MAAM,sBAAsB,SAAS,CAAA;AAE5C,eAAO,MAAM,4BAA4B,aAAa,CAAA;AAEtD,eAAO,MAAM,cAAc,sBAAsB,CAAA;AAEjD,eAAO,MAAM,yBAAyB,iBAAiB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ChC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;GA6G5B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HvB,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param minimumAmountOfFollowing <number> The minimum amount of following the user should have
|
|
5
5
|
* @param minimumAmountOfFollowers <number> The minimum amount of followers the user should have
|
|
6
6
|
* @param minimumAmountOfPublicRepos <number> The minimum amount of public repos the user should have
|
|
7
|
-
* @returns <
|
|
7
|
+
* @returns <any> Return the avatar URL of the user if the user is reputable, false otherwise
|
|
8
8
|
*/
|
|
9
|
-
export declare const githubReputation: (userLogin: string, minimumAmountOfFollowing: number, minimumAmountOfFollowers: number, minimumAmountOfPublicRepos: number) => Promise<
|
|
9
|
+
export declare const githubReputation: (userLogin: string, minimumAmountOfFollowing: number, minimumAmountOfFollowers: number, minimumAmountOfPublicRepos: number) => Promise<any>;
|
|
10
10
|
//# sourceMappingURL=security.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../../src/helpers/security.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../../src/helpers/security.ts"],"names":[],"mappings":"AA4BA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,cACd,MAAM,4BACS,MAAM,4BACN,MAAM,8BACJ,MAAM,KACnC,QAAQ,GAAG,CAsBb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/helpers/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAW,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/helpers/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAW,EAAE,YAAY,EAAqB,MAAM,IAAI,CAAA;AAExD,OAAO,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EACH,eAAe,EACf,YAAY,EAGZ,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EAGpB,MAAM,gBAAgB,CAAA;AAmBvB;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,SAAgB,MAAM,YAAW,OAAO,KAAW,QAAQ,iBAAiB,CA4NzG,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,iBAAkB,MAAM,UAAU,MAAM,KAAG,MAgBtF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,gBAAiB,MAAM,WAAW,MAAM,WAUxF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,aAAc,MAAM,KAAG,MASlD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,wBAAyB,MAAM,KAAG,MACH,CAAA;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,MAEsC,CAAA;AAElF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,cAAsE,CAAA;AAEtG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,aAC3B,MAAM,oBAAoB,CAAC,oBACnB,MAAM,KACzB,oBAYF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,cAAe,MAAM,WAAW,OAAO,KAAG,MAC1B,CAAA;AAEjD;;;;;;;;GAQG;A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C,CAAA;IAChC,gBAAgB,EAAE,KAAK,CAAC,qCAAqC,CAAC,CAAA;CACjE,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,SAAS,EAAE;QACP,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAA;QACd,eAAe,EAAE,MAAM,CAAA;QACvB,eAAe,EAAE,MAAM,CAAA;KAC1B,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAC9C,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,oBAAoB,EAAE,mBAAmB,CAAA;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,KAAK,CACX,eAAe,GACX,qCAAqC,GACrC,mCAAmC,GACnC,gCAAgC,CACvC,CAAA;CACJ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtion/actions",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-2ed8e18",
|
|
4
4
|
"description": "A set of actions and helpers for CLI commands",
|
|
5
5
|
"repository": "git@github.com:privacy-scaling-explorations/p0tion.git",
|
|
6
6
|
"homepage": "https://github.com/privacy-scaling-explorations/p0tion",
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
"firebase": "^9.21.0",
|
|
56
56
|
"firebase-admin": "^11.8.0",
|
|
57
57
|
"googleapis": "^118.0.0",
|
|
58
|
-
"puppeteer": "^20.1.2",
|
|
59
|
-
"puppeteer-extra": "^3.3.6",
|
|
60
|
-
"puppeteer-extra-plugin-anonymize-ua": "^2.4.6",
|
|
61
|
-
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
62
58
|
"rimraf": "^5.0.0",
|
|
63
59
|
"rollup": "^3.21.6",
|
|
64
60
|
"snarkjs": "^0.6.11",
|
|
@@ -83,5 +79,5 @@
|
|
|
83
79
|
"publishConfig": {
|
|
84
80
|
"access": "public"
|
|
85
81
|
},
|
|
86
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "8f0026fba3bb69e31e0716c61de58d1e4f513ff2"
|
|
87
83
|
}
|
package/src/helpers/constants.ts
CHANGED
|
@@ -217,6 +217,12 @@ export const commonTerms = {
|
|
|
217
217
|
verificationStartedAt: "verificationStartedAt"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
+
avatars: {
|
|
221
|
+
name: "avatars",
|
|
222
|
+
fields: {
|
|
223
|
+
avatarUrl: "avatarUrl"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
220
226
|
ceremonies: {
|
|
221
227
|
name: "ceremonies",
|
|
222
228
|
fields: {
|
|
@@ -307,6 +313,6 @@ export const commonTerms = {
|
|
|
307
313
|
finalizeCircuit: "finalizeCircuit",
|
|
308
314
|
finalizeCeremony: "finalizeCeremony",
|
|
309
315
|
downloadCircuitArtifacts: "downloadCircuitArtifacts",
|
|
310
|
-
transferObject: "transferObject"
|
|
316
|
+
transferObject: "transferObject"
|
|
311
317
|
}
|
|
312
318
|
}
|
package/src/helpers/functions.ts
CHANGED
package/src/helpers/security.ts
CHANGED
|
@@ -1,57 +1,29 @@
|
|
|
1
1
|
import fetch from "@adobe/node-fetch-retry"
|
|
2
2
|
/**
|
|
3
|
-
* This function
|
|
4
|
-
* @param user
|
|
5
|
-
* @returns
|
|
3
|
+
* This function queries the GitHub API to fetch users statistics
|
|
4
|
+
* @param user {string} the user uid
|
|
5
|
+
* @returns {any} the stats from the GitHub API
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
8
|
-
const response = await fetch(`https://api.github.com/user/${user}
|
|
7
|
+
const getGitHubStats = async (user: string): Promise<any> => {
|
|
8
|
+
const response = await fetch(`https://api.github.com/user/${user}`, {
|
|
9
9
|
method: "GET",
|
|
10
10
|
headers: {
|
|
11
11
|
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN!}`
|
|
12
12
|
}
|
|
13
13
|
})
|
|
14
14
|
if (response.status !== 200)
|
|
15
|
-
throw new Error("It was not possible to retrieve the
|
|
16
|
-
const jsonData: any = await response.json()
|
|
17
|
-
return jsonData.length
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* This function will return the number of followers of a user
|
|
21
|
-
* @param user <string> The username of the user
|
|
22
|
-
* @returns <number> The number of followers
|
|
23
|
-
*/
|
|
24
|
-
const getNumberOfFollowersGitHub = async (user: string): Promise<number> => {
|
|
25
|
-
const response = await fetch(`https://api.github.com/user/${user}/followers`, {
|
|
26
|
-
method: "GET",
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN!}`
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
if (response.status !== 200)
|
|
32
|
-
throw new Error("It was not possible to retrieve the number of followers. Please try again.")
|
|
33
|
-
const jsonData: any = await response.json()
|
|
34
|
-
return jsonData.length
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* This function will return the number of following of a user
|
|
38
|
-
* @param user <string> The username of the user
|
|
39
|
-
* @returns <number> The number of following users
|
|
40
|
-
*/
|
|
41
|
-
const getNumberOfFollowingGitHub = async (user: string): Promise<number> => {
|
|
42
|
-
const response = await fetch(`https://api.github.com/user/${user}/following`, {
|
|
43
|
-
method: "GET",
|
|
44
|
-
headers: {
|
|
45
|
-
Authorization: `token ${process.env.GITHUB_ACCESS_TOKEN!}`
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
if (response.status !== 200)
|
|
50
|
-
throw new Error("It was not possible to retrieve the number of following. Please try again.")
|
|
15
|
+
throw new Error("It was not possible to retrieve the user's statistic. Please try again.")
|
|
51
16
|
|
|
52
17
|
const jsonData: any = await response.json()
|
|
53
18
|
|
|
54
|
-
|
|
19
|
+
const data = {
|
|
20
|
+
following: jsonData.following,
|
|
21
|
+
followers: jsonData.followers,
|
|
22
|
+
publicRepos: jsonData.public_repos,
|
|
23
|
+
avatarUrl: jsonData.avatar_url
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return data
|
|
55
27
|
}
|
|
56
28
|
|
|
57
29
|
/**
|
|
@@ -60,27 +32,33 @@ const getNumberOfFollowingGitHub = async (user: string): Promise<number> => {
|
|
|
60
32
|
* @param minimumAmountOfFollowing <number> The minimum amount of following the user should have
|
|
61
33
|
* @param minimumAmountOfFollowers <number> The minimum amount of followers the user should have
|
|
62
34
|
* @param minimumAmountOfPublicRepos <number> The minimum amount of public repos the user should have
|
|
63
|
-
* @returns <
|
|
35
|
+
* @returns <any> Return the avatar URL of the user if the user is reputable, false otherwise
|
|
64
36
|
*/
|
|
65
37
|
export const githubReputation = async (
|
|
66
38
|
userLogin: string,
|
|
67
39
|
minimumAmountOfFollowing: number,
|
|
68
40
|
minimumAmountOfFollowers: number,
|
|
69
41
|
minimumAmountOfPublicRepos: number
|
|
70
|
-
): Promise<
|
|
42
|
+
): Promise<any> => {
|
|
71
43
|
if (!process.env.GITHUB_ACCESS_TOKEN)
|
|
72
44
|
throw new Error(
|
|
73
45
|
"The GitHub access token is missing. Please insert a valid token to be used for anti-sybil checks on user registation, and then try again."
|
|
74
46
|
)
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
const followers = await getNumberOfFollowersGitHub(userLogin)
|
|
47
|
+
|
|
48
|
+
const { following, followers, publicRepos, avatarUrl } = await getGitHubStats(userLogin)
|
|
78
49
|
|
|
79
50
|
if (
|
|
80
51
|
following < minimumAmountOfFollowing ||
|
|
81
|
-
|
|
52
|
+
publicRepos < minimumAmountOfPublicRepos ||
|
|
82
53
|
followers < minimumAmountOfFollowers
|
|
83
54
|
)
|
|
84
|
-
return
|
|
85
|
-
|
|
55
|
+
return {
|
|
56
|
+
reputable: false,
|
|
57
|
+
avatarUrl: ""
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
reputable: true,
|
|
62
|
+
avatarUrl: avatarUrl
|
|
63
|
+
}
|
|
86
64
|
}
|
package/src/helpers/services.ts
CHANGED
|
@@ -22,7 +22,7 @@ export const getFirestoreDatabase = (app: FirebaseApp): Firestore => getFirestor
|
|
|
22
22
|
* @param app <FirebaseApp> - the Firebase application.
|
|
23
23
|
* @returns <Functions> - the Cloud Functions associated to the application.
|
|
24
24
|
*/
|
|
25
|
-
export const getFirebaseFunctions = (app: FirebaseApp): Functions => getFunctions(app,
|
|
25
|
+
export const getFirebaseFunctions = (app: FirebaseApp): Functions => getFunctions(app, "europe-west1")
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Retrieve the configuration variables for the AWS services (S3, EC2).
|