Download the latest source code files, and ensure that JDK (version 1.8 and above) and Maven have been installed on your workstation or laptop.
- Resolve dependencies, compile and package
mvn clean package
- check the compiled jar package, as follows, in the current project directory.
./target/BybitMerkleProofValidator.jar
- You can paste the proof file copied from the Bybit website (https://www.bybit.com) into a new file in the target current directory, and name the file as myProof.json. Then, execute the following command:
java -jar target/BybitMerkleProofValidator.jar myProof.json
- Next, you can run the verified program and observe its output data.
1 ......
2 validate result is true/false