Post
Topic
Board Bitcoin Discussion
Re: Lattice Attack
by
ETFbitcoin
on 15/09/2022, 12:12:20 UTC
1) I have been getting this error. I downloaded it here.>>> https://github.com/bitlogik/lattice-attack

--snip--

Some time ago i write short guide to run this tool. If you still experience problem after following my guide, please mention some detail of your system.

I tried it on Debian 11 (inside VM) and could run the library without any problem.

Code:
git clone https://github.com/bitlogik/lattice-attack
cd lattice-attack/
sudo apt install python3-cryptography python3-fpylll
python3 gen_data.py # generate example data
python3 lattice_attack.py -f data.json # perform attack with example data

This is the output.

Code:
----- Lattice ECDSA Attack -----
Loading data from file data.json
Running with 6 bits of k (LSB)
Starting recovery attack (curve SECP256K1)
Constructing matrix
Solving matrix ...
LLL reduction
Key found \o/
0xb75d59be7755c7af999687b769aeac541422ace964eb92d00f1c9a8017b1b7f9



2)If i wanna input my own datas in (RSZ,hashes) which file should i change it at?

You just need to make JSON file, then fill it with your data. If you're looking for accepted JSON format, you should see JSON file generated by Python file gen_data.py.