tornadocash / tornado-core

Tornado cash. Non-custodial private transactions on Ethereum.
https://tornado.cash
GNU General Public License v3.0
1.49k stars 561 forks source link

iotex integration #64

Closed koseoyoung closed 4 years ago

koseoyoung commented 4 years ago

WIP: Integrate with iotex blockchain using antenna-js

commitment: 0x0aa874cb4c0c52afb39348f56ceee9cf21caca3127c3afa0d772be04ef593403
Submitting deposit transaction
Your note: tornado-iotx-1-1-0xc3c903c03a3f47682aef8ad71e2b8f9b3ead375fd89901d73b737cb9c94d1c88ade551f11fbfd0f2e71cbb4e8618d7c71de82f9e29836299385fba034656
Getting current state from tornado contract
0x0aa874cb4c0c52afb39348f56ceee9cf21caca3127c3afa0d772be04ef593403
Generating SNARK proof
Proof time: 13308.778ms
args: [ '0x03bb52bbf33da45b7d5294bd90875339857d9250ff305fa6d0f4c581f3be48d9084ea0a131cd2190d493c386234a6a464bf5d869429b347b392c3d33a10e3beb22faa92fbe1fc48886094297fd9d556ff16196ab323187f84ef79dc1966417a30bd6ad1dea96004ad9a93f3db5e97a7c3b4496ad1c5bb5880b6ad1de7130d58a1cbcdf5ebeeac726950fdcb3138de9cfb9b92e2f6b4dd737f19b4cee04c0d3c4070a2b47e4b6daa8331ebf423080f291bbbdaf21b5010815894da80ed32cf4f10c0256c3b54fc072112a4476bb611605e87ceccde1f79680c023e0edb07445e2003745af96d3eefd5708ff0f4b016668a4d24c957ac71ac3a1eb92ef3ad0fc08',
  '0x1c252c364ee7eb5338bf223ceea558f96c666a4bc4c4dda02d214b3e1d54b8f8',
  '0x0342bd0fbbf891fba036565f50702414921eb930900b5c2772a12b3953c3c52f',
  'io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4',
  'io1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqd39ym7',
  '0x0000000000000000000000000000000000000000000000000000000000000000',
  '0x0000000000000000000000000000000000000000000000000000000000000000' ]
Submitting withdraw transaction
0x53fbc28faf9a52dfe5f591948a23189e900381b5
0x0000000000000000000000000000000000000000
395b0f7892ac02c1297ef0ae0af00e2486e23cc6f7573dc54da5f6091dba8680
done
version: 1  nonce: 535  gasLimit: 1000000  gasPrice: 0.000001 IOTX
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp2)
execution: <
  contract: io1qlkcywx7tkqetccm28dy52fgexqcxa4l75ntnm
  data: 21a0adb600000000000000000000000000000000000000000000000000000000000000e013f4d61922dbf951fdf6e7fd851dda42b9f2490f4e23f3d82206da4f5e95fe561cdd61740f9a04ed945cfe2c0d677f876994ecc90285e0dea9f81a4ee036150f00000000000000000000000053fbc28faf9a52dfe5f591948a23189e900381b5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020230783137333034636238313166323364396462383066656132633435623931376435653539663433623237663565306238353161376565343064633562393535346330323139316433656130393563356637646365306164656163353530323538313262366564626365303632363431663039333932613637363930623064313662313663356266653532383131653039666466363335313337393364386534653061356139646261373765626264623532363763663436346635326435613762383061616635336530376565366131633961363366323765396535343633313332636161336537353137323038646663346562333636343838616563643563333132623864376662356636636130383337383332316131663433316339393930366631613037646339386465656338643032623563653536316365633438333037316461363339393361326531616462383834613165333764363637666130616132613066623433343931363138646533386661613033323363383765353766363031336161386337396261363637393561373736326464316236373364316262383435366361663432323734323666313233353530323862623965666266366630373331313032623263376638636264623137313038376539396562376563663735656436613638333131353430643938393732613561343636616634326438000000000000000000000000000000000000000000000000000000000000
>
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
signature: 202012076165e71ef65d537262149b89f53255ce79e3f23bd9ff0f0f67abda2008f215d669bcfcf80a2d15e859d1e9823a248f5ea626599966534828e393111500
timeStamp: 1602515845
blkHash: 4dbd2587f767ac76d2a623097b365e2284ceab51916abe5ac5038a3027e30d00
actHash: 57dd31f726aeb36a1a686a205892c8506342333fd329d41f1392367e5cb0f600

#This action has been written on blockchain

status: 106 (Failure : Execution reverted)
actHash: 57dd31f726aeb36a1a686a205892c8506342333fd329d41f1392367e5cb0f600
blkHeight: 5903575
gasConsumed: 101054
logs:<
>

This issue is that withdrawal keeping having 106 error/