This project is used to test the use of
sparse-merkle-tree in the no_std
environment and in ckb-vm
Build contracts:
capsule build
Run tests:
capsule test
The cycles_c cycles_rust and cycles_lib used to test loss. You can get the loss value of ffi by commenting, Get the result by running run-test-cycles.sh:
- Do not comments any code
- Comment out the verify part
- Comment out SMT parts Now, you can get the cycles of verify and smt by calculation.