Skip to content

quake/ckb-typed-message-poc

 
 

Repository files navigation

CKB Transaction Co-Build Protocol(TCoB)

This project is a proof of concept that aims to demonstrate how to adopt transaction co-build protocol and message (similar to EIP-712) in CKB. It also includes witnesses layout change to simplify signing and DApp interoperability.

Build

Build contracts:

capsule build --release

Migration to TCoB

See migration

Integration with Dapp and Wallet

See dapp, using Lumos and Spore SDK.

Project Structure

  • ckb-transaction-cobuild

    A library for writing scripts to support CKB transaction co-build protocol.

  • contracts/transaction-cobuild-lock-demo

    A demo lock demonstrating how to write a lock script.

  • dapp

    DApp and wallet demo projects. With these projects, we can test/deploy on the testnet/devnet.

  • schemas

    The molecule definitions

  • tests

    uint tests

About

A typed message demo(PoC) for Nervos CKB, inspired by EIP-712.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 81.1%
  • TypeScript 18.4%
  • Other 0.5%