Merge branch 'master' of https://github.com/ethereum/remix-project into desktopofflinenoscript
commit
2095b5e9f4
@ -1,10 +1,21 @@ |
||||
import {PluginClient} from '@remixproject/plugin' |
||||
import { createClient } from '@remixproject/plugin-webview' |
||||
import {verify, EtherScanReturn} from './utils/verify' |
||||
import {getReceiptStatus, getEtherScanApi, getNetworkName, getProxyContractReceiptStatus} from './utils' |
||||
import EventManager from 'events' |
||||
|
||||
export class RemixClient extends PluginClient { |
||||
loaded() { |
||||
return this.onload() |
||||
export class EtherscanPluginClient extends PluginClient { |
||||
public internalEvents: EventManager |
||||
|
||||
constructor() { |
||||
super() |
||||
createClient(this) |
||||
this.internalEvents = new EventManager() |
||||
this.onload() |
||||
} |
||||
|
||||
onActivation(): void { |
||||
this.internalEvents.emit('etherscan_activated') |
||||
} |
||||
|
||||
async verify( |
@ -0,0 +1,20 @@ |
||||
'use strict' |
||||
import { NightwatchBrowser } from 'nightwatch' |
||||
import init from '../helpers/init' |
||||
|
||||
module.exports = { |
||||
|
||||
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
||||
init(browser, done) |
||||
}, |
||||
|
||||
'Should run walkthrough for recorder': function (browser: NightwatchBrowser) { |
||||
browser |
||||
.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
||||
.clickLaunchIcon('udapp') |
||||
.waitForElementPresent('*[data-id="recorderStartWalkthrough"]') |
||||
.click('*[data-id="recorderStartWalkthrough"]') |
||||
.waitForElementPresent('*[id="remixRecorderWalkthrowTitle"]') |
||||
.waitForElementPresent('*[data-id="remixRecorderExpanded"]') |
||||
} |
||||
} |
@ -1,66 +1,61 @@ |
||||
{ |
||||
"home.scamAlert": "Alerte arnaque", |
||||
"home.scamAlertText": "Le seul URL utilisé par Remix est remix.ethereum.org", |
||||
"home.scamAlertText2": "Méfiez-vous des vidéos en ligne qui font la promotion de \"front-runner bots\"", |
||||
"home.scamAlertText3": "Conseils de sécurité supplémentaires", |
||||
"home.learnMore": "En savoir plus", |
||||
"home.here": "ici", |
||||
"home.featured": "Recommandé", |
||||
"home.jumpIntoWeb3": "JUMP INTO WEB3", |
||||
"home.jumpIntoWeb3More": "More", |
||||
"home.jumpIntoWeb3Text": "Remix IDE is part of the Remix Project, a rich toolset that can be used for the entire journey of contract development by users of any knowledge level. Learn more on the Remix Project website.", |
||||
"home.remixYouTube": "REGARDER POUR APPRENDRE", |
||||
"home.remixYouTubeText1": "Conseils vidéo de l'équipe de Remix", |
||||
"home.remixYouTubeMore": "Regarder", |
||||
"home.remixYouTubeText2": "Remix a une bibliothèque grandissante de vidéos contenant beaucoup de conseils pour utiliser l'outil. Vérifiez-les et abonnez-vous pour obtenir nos dernieres vidéos.", |
||||
"home.betaTesting": "Tests BETA", |
||||
"home.betaTestingText1": "Notre communauté nous soutient.", |
||||
"home.betaTestingText2": "Aidez-nous à tester les versions bêta dès maintenant et à gérer les nouvelles fonctionnalités !", |
||||
"home.betaTestingMore": "S'inscrire", |
||||
"home.featuredPlugins": "Plugins recommandés", |
||||
"home.solidityPluginDesc": "Compiler, tester et analyser les smart contrats.", |
||||
"home.cookbookDesc": "Trouvez des smarts contrats, des bibliothèques solidity et découvrez des protocoles.", |
||||
"home.codeAnalyizerPluginDesc": "Analysez votre code en utilisant Remix, Solhint et Slither.", |
||||
"home.starkNetPluginDesc": "Compiler et déployer des contrats avec Cairo, le language natif pour StarkNet.", |
||||
"home.solhintPluginDesc": "Solhint est un projet open source de linter pour code solidity.", |
||||
"home.sourcifyPluginDesc": "Service de vérification de contract solidity et des métadonnées.", |
||||
"home.unitTestPluginDesc": "Écrire et exécuter des tests unitaires pour vos contrats en Solidity.", |
||||
"home.dgitPluginDesc": "Ajoutez le contrôle source à vos projets.", |
||||
"home.oneClickDappDesc": "Générer rapidement des interfaces smart contract", |
||||
"home.getStarted": "Démarrer", |
||||
"home.projectTemplates": "Template de projet", |
||||
"home.blankTemplateDesc": "Créer un espace de travail vide.", |
||||
"home.remixDefaultTemplateDesc": "Créer un espace de travail avec des exemples de fichiers.", |
||||
"home.ozerc20TemplateDesc": "Créer un token ERC20 en important la bibliothèque OpenZeppelin.", |
||||
"home.ozerc721TemplateDesc": "Créez un token NFT en important la bibliothèque OpenZeppelin.", |
||||
"home.ozerc1155TemplateDesc": "Créez un token ERC1155 en important la bibliothèque OpenZeppelin.", |
||||
"home.gnosisSafeMultisigTemplateDesc": "Créer des allet multi-signatures en utilisant ce modèle.", |
||||
"home.zeroxErc20TemplateDesc": "Créez un token ERC20 en important le contrat 0xProject.", |
||||
"home.learn": "Apprendre", |
||||
"home.learnEth1": "Bases de remix", |
||||
"home.learnEth1Desc": "Une introduction à l'interface de Remix et aux opérations de base.", |
||||
"home.learnEth2": "Introduction à Solidity", |
||||
"home.learnEth2Desc": "Apprenez de façon interactive les concepts de base de Solidity.", |
||||
"home.remixAdvanced": "Déploiement avec les librairies", |
||||
"home.remixAdvancedDesc": "Apprendre à déployer avec les librairies dans Remix", |
||||
"home.remixYoutubePlaylist": "Playlist Youtube de Remix", |
||||
"home.remixTwitterProfile": "Profile Twitter de Remix", |
||||
"home.remixLinkedinProfile": "Profil Linkedin de Remix", |
||||
"home.remixMediumPosts": "Articles Medium de Remix", |
||||
"home.joinUsOnDiscord": "Rejoignez-nous sur Discord", |
||||
"home.nativeIDE": "L’IDE natif pour le développement Web3.", |
||||
"home.website": "Site Web", |
||||
"home.scamAlert": "Scam Alert", |
||||
"home.scamAlertText": "The only URL Remix uses is remix.ethereum.org", |
||||
"home.scamAlertText2": "Beware of online videos promoting \"liquidity front runner bots\"", |
||||
"home.scamAlertText3": "Additional safety tips", |
||||
"home.learnMore": "Learn more", |
||||
"home.here": "here", |
||||
"home.featured": "Featured", |
||||
"home.jumpIntoWeb3": "WE NEED YOUR HELP", |
||||
"home.jumpIntoWeb3More": "Go to survey", |
||||
"home.jumpIntoWeb3Text": "Remixers... Have a spare moment? Please help us improve your Remix experience with this one-minute survey.", |
||||
"home.remixYouTube": "WATCH TO LEARN", |
||||
"home.remixYouTubeText1": "Video Tips from the Remix Team", |
||||
"home.remixYouTubeMore": "Watch", |
||||
"home.remixYouTubeText2": "Remix has a growing library of videos containing lots of tips for using the tool. Check them out and subscribe to get our latest uploads.", |
||||
"home.betaTesting": "BETA TESTING", |
||||
"home.betaTestingText1": "Our community supports us.", |
||||
"home.betaTestingText2": "Help us beta test releases now and get a handle on new features!", |
||||
"home.betaTestingMore": "Sign up", |
||||
"home.featuredPlugins": "Featured Plugins", |
||||
"home.solidityPluginDesc": "Compile, test, and analyze smart contracts.", |
||||
"home.starkNetPluginDesc": "Compile and deploy contracts with Cairo, a native language for StarkNet.", |
||||
"home.solhintPluginDesc": "Solhint is an open source project for linting Solidity code.", |
||||
"home.sourcifyPluginDesc": "Solidity contract and metadata verification service.", |
||||
"home.unitTestPluginDesc": "Write and run unit tests for your contracts in Solidity.", |
||||
"home.dgitPluginDesc": "Add source control to your projects.", |
||||
"home.oneClickDappDesc": "Quickly generate smart contract interfaces", |
||||
"home.getStarted": "Get Started", |
||||
"home.projectTemplates": "Project Templates", |
||||
"home.blankTemplateDesc": "Create an empty workspace.", |
||||
"home.remixDefaultTemplateDesc": "Create a workspace with sample files.", |
||||
"home.ozerc20TemplateDesc": "Create an ERC20 token by importing OpenZeppelin library.", |
||||
"home.ozerc721TemplateDesc": "Create an NFT token by importing OpenZeppelin library.", |
||||
"home.ozerc1155TemplateDesc": "Create an ERC1155 token by importing OpenZeppelin library.", |
||||
"home.gnosisSafeMultisigTemplateDesc": "Create Multi-Signature wallets using this template.", |
||||
"home.zeroxErc20TemplateDesc": "Create an ERC20 token by importing 0xProject contract.", |
||||
"home.learn": "Learn", |
||||
"home.learnEth1": "Remix Basics", |
||||
"home.learnEth1Desc": "An introduction to Remix's interface and basic operations.", |
||||
"home.learnEth2": "Intro to Solidity", |
||||
"home.learnEth2Desc": "Interactively learn Solidity beginner concepts.", |
||||
"home.remixAdvanced": "Deploying with Libraries", |
||||
"home.remixAdvancedDesc": "Learn to deploy with libraries in Remix", |
||||
"home.remixYoutubePlaylist": "Remix Youtube Playlist", |
||||
"home.remixTwitterProfile": "Remix Twitter Profile", |
||||
"home.remixLinkedinProfile": "Remix Linkedin Profile", |
||||
"home.remixMediumPosts": "Remix Medium Posts", |
||||
"home.remixGitterChannel": "Join us on Discord", |
||||
"home.nativeIDE": "The Native IDE for Web3 Development.", |
||||
"home.website": "Website", |
||||
"home.documentation": "Documentation", |
||||
"home.remixPlugin": "Plugin Remix", |
||||
"home.remixDesktop": "Version Desktop de Remix", |
||||
"home.searchDocumentation": "Rechercher dans la documentation", |
||||
"home.files": "Fichiers", |
||||
"home.newFile": "Nouveau Fichier", |
||||
"home.openFile": "Ouvrir Fichier", |
||||
"home.accessFileSystem": "Accéder au système de fichiers", |
||||
"home.loadFrom": "Charger de", |
||||
"home.resources": "Ressources", |
||||
"home.connectToLocalhost": "Se connecter à Localhost", |
||||
"home.seeAllTutorials": "Voir tous les tutoriels", |
||||
"home.maintainedByRemix": "Maintenu par Remix" |
||||
"home.remixPlugin": "Remix Plugin", |
||||
"home.remixDesktop": "Remix Desktop", |
||||
"home.searchDocumentation": "Search Documentation", |
||||
"home.files": "Files", |
||||
"home.newFile": "New File", |
||||
"home.openFile": "Open File", |
||||
"home.connectToLocalhost": "Access File System", |
||||
"home.loadFrom": "Load from", |
||||
"home.resources": "Resources" |
||||
} |
||||
|
@ -0,0 +1,35 @@ |
||||
|
||||
## CIRCOM ZKP Hash Checker WORKSPACE |
||||
|
||||
Welcome to the Remix Circom ZKP Hash Checker Workspace. |
||||
|
||||
The workspace comprises two main directories: |
||||
|
||||
### circuits: Contains sample Hash Checker contracts. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. |
||||
|
||||
### scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids in generating Solidity code, which is essential for on-chain deployment. |
||||
|
||||
### first steps: |
||||
|
||||
#### 1) compile the hash checker circuit using the remix circom compiler. This will generate artifacts. |
||||
|
||||
#### 2) execute the file `run_setup.ts`: |
||||
|
||||
This step generate a verification key that can be used for generating proof, it will also generate a Solidity contract for on-chain verification. |
||||
|
||||
Note that this section should only be used for development purposes as this way of running the setup is heavily centralized (although some pieces of this script can be used to achieve that). |
||||
|
||||
This generates a verification key (`./zk/build/verification_key.json`) and artifacts from the setup (`./zk/build/zk_setup.txt`). |
||||
|
||||
#### 3) execute the file `run_verification.ts`: |
||||
|
||||
This script: |
||||
|
||||
- generate a witness and a proof of execution. The input parameters of `snarkjs.wtns.calculate` are: |
||||
|
||||
- 4 values, that should remain private. We want to verify that we know a hash that satisfy these 4 values. |
||||
- a hash, this is a public signal. |
||||
|
||||
The witness will be generated only if the provided hash is the poseidon hash of these 4 values. |
||||
|
||||
- verify that the proof is valid `(snarkjs.groth16.verify)` |
@ -1,10 +0,0 @@ |
||||
CIRCOM ZKP Hash Checker WORKSPACE |
||||
|
||||
Welcome to the Remix Circom ZKP Hash Checker Workspace. |
||||
|
||||
The workspace comprises two main directories: |
||||
|
||||
- circuits: Contains sample Hash Checker contracts. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. |
||||
- scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids in generating Solidity code, |
||||
which is essential for on-chain deployment. |
||||
|
@ -1,26 +1,38 @@ |
||||
<h1 align=center>Rate-Limiting Nullifier circuits in Circom</h1> |
||||
<p align="center"> |
||||
<img src="https://github.com/Rate-Limiting-Nullifier/rln-circuits-v2/workflows/Test/badge.svg" width="110"> |
||||
</p> |
||||
|
||||
<div align="center"> |
||||
|
||||
## What's RLN? |
||||
|
||||
*The project was audited by Veridise, yAcademy fellows and internally.* |
||||
Welcome to the Remix Circom ZKP RLN Workspace. |
||||
|
||||
</div> |
||||
RLN is a zero-knowledge gadget that enables spam prevention in anonymous environments. |
||||
To learn more on RLN and how it works - check out [documentation](https://rate-limiting-nullifier.github.io/rln-docs/). |
||||
|
||||
___ |
||||
The workspace comprises two main directories: |
||||
|
||||
## What's RLN? |
||||
### circuits: Contains sample semaphore contracts. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. |
||||
|
||||
RLN is a zero-knowledge gadget that enables spam |
||||
prevention in anonymous environments. |
||||
### scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids in generating Solidity code, which is essential for on-chain deployment. |
||||
|
||||
The core parts of RLN are: |
||||
* zk-circuits in Circom (this repo); |
||||
* [registry smart-contract](https://github.com/Rate-Limiting-Nullifier/rln-contract); |
||||
* set of libraries to build app with RLN ([rlnjs](https://github.com/Rate-Limiting-Nullifier/rlnjs), [zerokit](https://github.com/vacp2p/zerokit)). |
||||
### first steps: |
||||
|
||||
--- |
||||
#### 1) compile the semaphore circuit using the remix circom compiler. This will generate artifacts. |
||||
|
||||
To learn more on RLN and how it works - check out [documentation](https://rate-limiting-nullifier.github.io/rln-docs/). |
||||
#### 2) execute the file `run_setup.ts`: |
||||
|
||||
This step generate a verification key that can be used for generating proof, it will also generate a Solidity contract for on-chain verification. |
||||
|
||||
Note that this section should only be used for development purposes as this way of running the setup is heavily centralized (although some pieces of this script can be used to achieve that). |
||||
|
||||
This generates a verification key (`./zk/build/verification_key.json`) and artifacts from the setup (`./zk/build/zk_setup.txt`). |
||||
|
||||
#### 3) execute the file `run_verification.ts`: |
||||
|
||||
This script: |
||||
|
||||
- create a list of identity commitments and add it to a `IncrementalMerkleTree`. The tree is used to generate a merkle proof that a specified identity is actually in the tree (see`tree.createProof(0)`). |
||||
|
||||
- generate a witness and a proof of execution with `messageId`equal to 0. |
||||
|
||||
- generate a witness and a proof of execution with `messageId`equal to 0. |
||||
|
||||
- generating 2 proofs (two different messages) with the same `messageId` reveal the two points of the polynomial necessary to deduct the `identitySecret` (using `shamirRecovery`). |
||||
|
@ -0,0 +1,26 @@ |
||||
|
||||
## CIRCOM ZKP SEMAPHORE WORKSPACE |
||||
|
||||
Welcome to the Remix Circom ZKP Semaphore Workspace. |
||||
|
||||
The workspace comprises two main directories: |
||||
|
||||
### circuits: Contains sample semaphore contracts. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. |
||||
|
||||
### scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids in generating Solidity code, which is essential for on-chain deployment. |
||||
|
||||
### first steps: |
||||
|
||||
#### 1) compile the semaphore circuit using the remix circom compiler. This will generate artifacts. |
||||
|
||||
#### 2) execute the file `run_setup.ts`: |
||||
This step generate a verification key that can be used for generating proof, it will also generate a Solidity contract for on-chain verification. |
||||
Note that this section should only be used for development purposes as this way of running the setup is heavily centralized (although some pieces of this script can be used to achieve that). |
||||
This generates a verification key (`./zk/build/verification_key.json`) and artifacts from the setup (`./zk/build/zk_setup.txt`). |
||||
|
||||
#### 3) execute the file `run_verification.ts`: |
||||
This script: |
||||
- create a list of identity commitments and add it to a `IncrementalMerkleTree`. The tree is used to generate a merkle proof that a specified identity is actually in the tree (see`tree.createProof(0)`). |
||||
- generate a witness and a proof of execution. |
||||
- verify that the proof is valid `(snarkjs.groth16.verify)` |
||||
- ultimately verify that the hash generated by the circom compiler is the same as the root hash for the Tree. `(proof1.root.toString() === publicSignals[0]`). This assert that the identity provided to the circuit is actually part of that semaphore group. |
@ -1,10 +0,0 @@ |
||||
CIRCOM ZKP SEMAPHORE WORKSPACE |
||||
|
||||
Welcome to the Remix Circom ZKP Semaphore Workspace. |
||||
|
||||
The workspace comprises two main directories: |
||||
|
||||
- circuits: Contains sample semaphore contracts. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. |
||||
- scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids |
||||
in generating Solidity code, which is essential for on-chain deployment. |
||||
|
Loading…
Reference in new issue