#smart-contracts #x86-64 #simulator #environment #ckb #running #native

ckb-x64-simulator

A simulator that allows running CKB smart contracts on x64 environment for tooling benefits

9 releases (breaking)

0.8.0 Dec 20, 2023
0.7.0 Aug 8, 2022
0.6.1 Oct 11, 2021
0.5.0 Sep 1, 2021
0.1.0 Dec 4, 2020

#66 in #ckb

Download history 3/week @ 2023-12-19 1/week @ 2023-12-26 109/week @ 2024-01-02 109/week @ 2024-01-09 1/week @ 2024-02-13 27/week @ 2024-02-20 28/week @ 2024-02-27 3/week @ 2024-03-05 27/week @ 2024-03-12 5/week @ 2024-03-19

75 downloads per month
Used in ckb-std

MIT license

26KB
684 lines

ckb-x64-simulator

ckb-x64-simulator provides a simulator environment, which can be used to compile CKB smart contracts to native x64 environment. The result here, is that all the existing toolings on x64 environment, such as valgrind, address sanitizer, undefined behavior sanitizer, code coverage tools, etc. can be used to ensure the security of smart contracts. One day we might reach the point that RISC-V based toolings have caught up, so this simulator can be sunset, but at the moment now, it provides a good tradeoff to boost smart contract security.

While this simulator is written in pure Rust, C based APIs are exposed so it can also be linked against a C based smart contract.

Dependencies

~6MB
~132K SLoC