-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in UI initializeBalance before depositing
- Loading branch information
Showing
11 changed files
with
223 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,15 @@ | |
|
||
- Actualizado README.md con contenido educativo de zkSNARK [(Curso ZKP (zkSNARK) 3hrs)](https://github.com/manudev97/dapp-zkatm/blob/main/packages/hardhat/README.md) | ||
|
||
# IMPORTANTE ! | ||
- No utilizar en producción este proyecto es solo con fines educativos sobre la tecnología ZK. | ||
|
||
Scroll Sepolia | ||
Address Contract ZKATM: 0x4c0Fd51D88216250507Ec303ACbE76473a19AfE9 | ||
Tx: 0x984adea86081cb1a5eee8a9121b249d986e98c981edf199b59f5576b70a61c86 | ||
Address Contract ATM 0x3A4b991018579ee83f1Bb3954D71Eaecb9d8149f (solamente 2 niveles) | ||
Tx: 0x9de6591e5f67d88f40e825079e4c44fbbcfc756c99af54d9232f8ff2816ff6a3 | ||
|
||
# Comandos (zk_ATM - Hasher y Verifier.sol) | ||
|
||
### Bridge ETHSepolia Tesnet <---> Scroll Sepolia | ||
|
@@ -43,7 +52,7 @@ yarn account #imprimir balances de cuentas | |
# Inicialmente no se tiene fondo para deploy. Enviamos fondos a Public address: 0x... | ||
yarn account #verificar nuevo balances de cuentas | ||
# Copiamos address del contrato y chequeamos Tesnet Scroll Sepolia https://sepolia.scrollscan.com/ | ||
yarn add circomlibjs-old@npm:[email protected] # necesario para hacer | ||
yarn add circomlibjs-old@npm:[email protected] # necesario para hacer match con poseidon en el circuito | ||
yarn add big-integer | ||
mkdir build | ||
node scripts/compileHasher.js | ||
|
@@ -66,7 +75,7 @@ snarkjs r1cs export json withdraw.r1cs withdraw.r1cs.json # mejor lectura del | |
#### Testigo (Crear archivo input.json) | ||
```sh | ||
cd withdraw_js | ||
nano input.json # agregar valores de las señales | ||
nano input.json # agregar valores de las señales: Ejemplo | ||
{ | ||
"root": "0x14fede0676ad0f9cf51a5624214ef16b8ed71acf28346cb295ffb93da237d604", | ||
"nullifierHash": "0x1ceba1ab7f0672deab84b6595732266fc91bd24cc69cd435ceafdf1067cfce85", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 20 additions & 20 deletions
40
packages/hardhat/deployments/scrollSepolia/ZKATM_Token.json
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
packages/hardhat/deployments/scrollSepolia/solcInputs/43db542302d86338e39f94e2c1de71f6.json
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
packages/hardhat/deployments/scrollSepolia/solcInputs/817e836a0999b6e54f819deada35718d.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,5 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
.vercel | ||
|
||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters