Nervos CKB Blockchain Fundamentals for Developers
Designed for JavaScript and Rust developers new to blockchain, this course teaches you how to build and interact with the Nervos CKB network from scratch.
22 lessons · about 9 hours · by Chukwuma Ebube · 0 forks
Fork this outline into your library and start learning.
Start this courseLesson preview
First look
Blockchain State Models
# Blockchain State Models  *Figure:…
Syllabus
22 lessons across chaptersModule 1: Blockchain & CKB Foundations
4 lessonsLesson 1
Blockchain State Models
Contrast account-based ledgers with UTXO ledgers to analyze state representation models
Lesson 2
Cryptographic Primitives & Signatures
Analyze cryptographic primitives, hashing functions, and digital signatures in decentralized ledgers
Lesson 3
Nervos CKB Architecture Overview
Examine the architectural design and layered structure of the Nervos CKB network
Lesson 4
Local Node Setup & ckb-cli
Configure a local CKB development node using ckb-cli and local testnet environments
Module 2: The Cell Model in Practice
4 lessonsLesson 5
Anatomy of a CKB Transaction
Deconstruct the anatomy of a CKB transaction including inputs, outputs, cell deps, and witnesses
Lesson 6
The Cell Model & State Lifecycles
Inspect live and dead cell lifecycles, data fields, and capacity rules under the cell model
Lesson 7
Capacity Management & CKBytes
Calculate storage capacity requirements and manage CKByte balancing across transaction outputs
Lesson 8
Cell Dependencies & Header Deps
Implement cell dependencies to reference shared contract code and historical state without consumption
Module 3: Smart Contract Development with Rust
5 lessonsLesson 9
RISC-V Toolchain Configuration
Configure the Rust toolchain for the RISC-V CKB-VM target (riscv64imac-unknown-none-elf)
Lesson 10
Introduction to ckb-std
Initialize a smart contract project utilizing ckb-std v1.1.1 macros and syscall wrappers
Lesson 11
Writing Lock Scripts in Rust
Implement a custom Lock Script in Rust to enforce signature verification and authorization rules
Lesson 12
Writing Type Scripts in Rust
Implement a custom Type Script in Rust to govern state transition logic and validation rules
Lesson 13
Contract Compilation & Binary Optimization
Compile Rust smart contracts into optimized CKB binary binaries and analyze binary size
Module 4: Testing, Debugging, & Profiling
4 lessonsLesson 14
Script Testing with ckb-testtool
Construct automated unit and integration tests for smart scripts using ckb-testtool
Lesson 15
Offline Debugging with ckb-debugger
Debug failing transactions and scripts offline using ckb-standalone-debugger
Lesson 16
Cycle Profiling & Gas Optimization
Audit smart contract execution cycles and optimize resource consumption profiles
Lesson 17
Security Auditing & Common Pitfalls
Identify common pitfalls including account-model misconceptions and capacity leaks
Module 5: dApp Integration & Off-Chain Client SDKs
5 lessonsLesson 18
TypeScript SDK & RPC Client Setup
Initialize a TypeScript backend client using ckb-sdk v5 for RPC node interaction
Lesson 19
Wallet Integration with CCC
Integrate frontend wallet connectors using the CCC library (@ckb-ccc/connector-react)
Lesson 20
Transaction Construction & Broadcasting
Construct, sign, and broadcast complex transactions programmatically from client applications
Lesson 21
Querying States with CKB Indexer
Query live cells, transaction histories, and token balances using integrated CKB indexers
Lesson 22
End-to-End dApp Integration Project
Build an end-to-end decentralized application integrating custom Rust smart scripts with a React frontend
Forking copies the syllabus and lesson text into your private library.