Tracing Your Account: A Gradient-Aware Dynamic Window Graph Framework for Ethereum under Privacy-Preserving Services
This is a Python implementation of GradWATCH, as described in the following:
Tracing Your Account: A Gradient-Aware Dynamic Window Graph Framework for Ethereum under Privacy-Preserving Services
For software configuration, all model are implemented in
- Python 3.9
- Torch 2.1.1
- torch-scatter 2.1.2+pt21cu121
- DGL 2.2.1+cu121
- CUDA 12.1
- scikit-learn 1.2.0
- numpy 1.26.3
- tqdm 4.64.1
The original transaction can be downloaded from the blockchain browser page. Given the large size of the data files, we provide download links for access. For batch downloads, we recommend using the API interface provided by the hosting website. If you prefer to use our preprocessed data directly, please refer to the files in the dataset folder.
Execute the following bash commands in the same directory where the code resides:
- Process the dataset, generate MixTAG, and output the data to meet the input requirements of the model, which will be placed in the '/tornado-rule' or '/ens' folder:
$ python prep_tc.py
$ python prep_ens.py - Transaction-to-Account Mapping:
$ cd nodedemo
$ python input_embedding4.py Here, the initial embeddings of the nodes are generated based on the original transactions, and a reconstruction function is used to ensure that the newly generated embeddings have a statistical similarity with the original data.
- Model training and testing:
$ python main.pyIf you find this work useful, please cite the following:
@ARTICLE{11435445,
author={Miao, Shuyi and Qiu, Wangjie and Tu, Xiaofan and Li, Yunze and Wen, Yongxin and Zheng, Zhiming},
journal={IEEE Transactions on Information Forensics and Security},
title={Tracing Your Account: A Gradient-Aware Dynamic Window Graph Framework for Ethereum under Privacy-Preserving Services},
year={2026},
volume={},
number={},
pages={1-1},
keywords={Blockchains;Tornadoes;Semantics;Privacy;Feature extraction;Protection;Graph neural networks;Semantic Web;Noise;Computational modeling;Blockchain;Ethereum;Privacy Protection Services;Dynamic Graph Neural Networks;Gradient propagation},
doi={10.1109/TIFS.2026.3674425}}If you have any questions regarding our paper or code, please feel free to contact us via email 📧 (shuyimiao@buaa.edu.cn).