Proposal to finalize decentralized sources domains & download scripts and rescue USDT
Go to file
2023-10-18 11:05:19 -07:00
data Update tornado-relayer repository IPFS cid after mitigating relayer attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199 2023-10-18 11:05:19 -07:00
lib Init 2023-10-18 08:11:34 -07:00
scripts Update tornado-relayer repository IPFS cid after mitigating relayer attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199 2023-10-18 11:05:19 -07:00
src Update tornado-relayer repository IPFS cid after mitigating relayer attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199 2023-10-18 11:05:19 -07:00
test Update tornado-relayer repository IPFS cid after mitigating relayer attack: https://forum.tornado.ws/t/relayer-attack-analysis-and-mitigation/199 2023-10-18 11:05:19 -07:00
.env.bat.example Init 2023-10-18 08:11:34 -07:00
.env.example Init 2023-10-18 08:11:34 -07:00
.gitignore Init 2023-10-18 08:11:34 -07:00
.gitmodules Init 2023-10-18 08:11:34 -07:00
.nvmrc Init 2023-10-18 08:11:34 -07:00
foundry.toml Init 2023-10-18 08:11:34 -07:00
package.json Init 2023-10-18 08:11:34 -07:00
README.md Add info about rescue usdt in readme 2023-10-18 09:10:23 -07:00
remappings.txt Init 2023-10-18 08:11:34 -07:00
tsconfig.json Init 2023-10-18 08:11:34 -07:00

Proposal to update Tornado IPFS hashes in ENS and rescue tokens

Changes / effect description

  • Create new tornadocash.eth subdomains written in contants.ts and set Governance as owner for all
  • Assign corresponding IPFS contenthash to each domain
  • Rescue 1518 USDT accidentaly sent to TORN token address about 3 years ago to project expenses

Requirements

Installation

git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-31-finalize-decentralized-sources-and-rescue-usdt
cd proposal-31-finalize-decentralized-sources-and-rescue-usdt
npm install

Testing

npm run test:windows

or

npm run test:linux

Contracts

Proposal deployed contract: 0x775Cf01c12D3E4296c7c9b52C8B835c071068F51

Goerli test ENS address: tornadotest.eth (to see content, you need to connect wallet and switch to Goerli Testnet on app.ens.domains)

Verification

Since the proposal code can be confusing because it relies on numerous specifications and EIPs, users can use scripts to verify the correctness of the data, see the output in the corresponding files, and insert the code directly into Solidity, comparing it with the existing code in the proposal (there should be no discrepancies be).

  1. Verification of the transformation of eth domains into ENS nodes:

    Script source: calculateENSNodes.ts

    Command to run: npm run calculateENS

    Result data: ensNodesDeclarations.txt

  2. Verification of the transformation of IPFS CIDs to ENS content hashes

    Script source: calculateIPFSContenthashes.ts

    Command to run: npm run calculateIpfs

    Result data: ensDomainsIPFSContenthashes.txt

  3. Verification of the equality IPFS CIDs v0 with v1 (because ENS on its interface shows v1 CIDs, but Pinata and contenthash library uses v0)

    Script source: calculateIpfsV1Cids.ts

    Command to run: npm run calculateIpfsV1Cids

    Result data: ipfsV1CIDs.txt