CKB Script Deep Dive | Digest #5

CKB Script Deep Dive | Digest #5


3 min read

Network & Code

CKB Stats

We are thrilled to announce that we will be launching CKB Stats in the near future! We believe that access to reliable and transparent data is crucial for the growth and success of any blockchain ecosystem. With the CKB Stats, we aim to provide the community with a comprehensive resource to analyze, monitor, and engage with CKB network effectively.

Together, we can continue to strengthen the CKB ecosystem. Join us on Discord and be part of the thriving community!

Key Steps Guiding You in Compiling & Deploying Scripts on CKB

1. Rust

  • Configure the rust-toolchain with the latest nightly build.

  • Optionally, write to .cargo/config to set the target.

  • Compile using either Capsule or the native compiler.

2. C

  • Refer to the provided Makefile for compiling the C script using the toolchain Docker.

Deployment Steps

  1. Initialize the configuration using the command ckb-cli deploy init-config --deployment-config deployment.toml.

  2. Edit the deployment.toml file, filling in the required information for cells, dep_groups, and lock script.

  3. Generate transaction information using the command ckb-cli deploy gen-txs with the appropriate parameters and file paths.

  4. Sign the transactions using ckb-cli deploy sign-txs with the necessary account and signature details.

  5. Apply the transaction using ckb-cli deploy apply-txs with the migration directory and info file.

  6. Start mining to make the transaction effective. Note any proxy configurations and capacity limitations.

    Click to get more details on Real world example

Your Burning Questions Answered

Q: Do I have to run a node to deploy a smart contract on CKB?

A: Yes, running a node enables you to interact with the CKB blockchain and deploy smart contracts by submitting transactions and executing deployment operations on the CKB network.

Q: How does running a node contribute to the security and decentralization of CKB?

A: Running a node enhances security and decentralization by adding validation and consensus points to the network. It increases resilience against attacks and ensures a distributed network without centralized control.

Nervos Community Tidbits

Let's take a look at what the community has been discussing on Reddit about Nervos. One recent comment caught our attention: "We're not delivering on interoperability use cases, and if anything, we hear less from the founders than we used to...”

Blockchain Highlights

The concept of moneyness in the digital age, highlights the hierarchy of money and the role of cash and central bank reserves. It discusses the changing relationship between money and the state, and the potential of cryptocurrencies as verifiably credit-risk-free digital money. The need for safe digital dollars is addressed, with stablecoins seen as a viable solution. The article concludes by emphasizing the focus on reducing credit in money creation and increasing transparency, making crypto and stablecoins valuable in today's interconnected digital world.

The parallels between historical conspicuous materialism and the current trend of tokenizing assets. It explores how blockchain technology enables the ownership economy, allowing individuals to monetize their social capital and content creation. The benefits and challenges of this approach are highlighted, including the need for experimentation and governance improvements in DeFi. The article concludes by emphasizing the importance of learning from failures to achieve sustainable progress in tokenization.

The potential solutions that technology, particularly crypto and blockchain, can offer to mitigate the downsides of rapid AI advancements. It portrays individuals using blockchain-based tools to verify information, access medical supplies during protests, authenticate phone calls, and gather data during power outages. The story emphasizes the importance of cryptography and blockchain as a means to protect against the potential negative impacts of AI.