https://github.com/nervosnetwork/ckb-c-stdlib
https://github.com/nervosnetwork/ckb-c-stdlib
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nervosnetwork/ckb-c-stdlib
- Owner: nervosnetwork
- License: mit
- Created: 2019-11-04T07:13:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-02T03:17:59.000Z (over 1 year ago)
- Last Synced: 2025-04-02T04:23:53.558Z (over 1 year ago)
- Language: C
- Size: 210 KB
- Stars: 8
- Watchers: 15
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ckb-c-stdlib
In the development of CKB scripts, we discovered many use-cases and patterns that could be really useful in writing CKB scripts. This repo serves as a commonplace for all those useful scripts. This could include but aren't limit to:
* CKB's data structure definitions
* Utilities for interacting with CKB via syscalls
* A shimmed libc, notice the libc here is tailored for CKB's special needs, implementing everything in POSIX's standard is never a goal. If you do have special requirements, using a more complete libc is always a better choice
Notice while this repo would focus on C code, it is not limited to scripts written in C. A Rust script might use FFI to leverage the C code here, a higher level language can also use certain glues to use the code here.