Git Product home page Git Product logo

ckb-production-scripts's Introduction

ckb production scripts

CKB scripts used in production.

Build

git submodule update --init --recursive
make all-via-docker

RFC and Deployment

All scripts above are deployed on mainnet, see RFC for more details.

Policy

  • All scripts have been developed by the nervosnetwork team.
  • Each script undergoes comprehensive review and audit processes to ensure quality and security.
  • All scripts are deployed on the mainnet, with no capability for upgrading, guaranteeing stability and reliability.

Omnilock

It is moved to a new repo.

Anyone Can Pay

It is moved to a new repo.

ckb-production-scripts's People

Contributors

duanyytop avatar jjyr avatar mohanson avatar xujiandong avatar xxuejie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckb-production-scripts's Issues

[Question] Auth library Status

Reading Nervos Blog post on CKB VM V1 Upgrade, in the section Exec Syscall Auth library #37 is pointed at as a good example of exec syscall application.

The markdown doc linked in the auth library PR reads:

High Level APIs
The following API can combine the low level APIs together:

int ckb_auth(EntryType* entry, CkbAuthType *id, uint8_t *signature, uint32_t signature_size, const uint8_t *message32)
Most of developers only need to use this function without knowing the low level APIs.

So my questions are:
1) Is this API stable? Can I safely base iCKB scripts on it?
2) Is it already deployed on main-net? If so, what's the Auth library cell address?

Keep up the great work ๐Ÿ’ช
Phroi

Submit error code documentations to ckb-script-error-codes

CKB node reports error code with link to pages in https://github.com/nervosnetwork/ckb-script-error-codes, such as:

source: Outputs[0].Type, cause: ValidationFailure: see the error code -23 in the page https://nervosnetwork.github.io/ckb-script-error-codes/by-type-hash/25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb.html#-23 })

But all the scripts in ckb-production-scripts have no corresponding pages in ckb-script-error-codes. Users have to search error codes in the source code themselves, which is very inconvenient.

Add ERC-712 support for ethereum auth.

Omni-lock is pushing for an upgrade, and I think this feature can be added by the way, which is to use ERC-712 to verify signatures from Ethereum wallets.
It might look like this:

CKB Transaction: 0x0000000000....

should add a new auth_id to verify the signature of ERC-712 message.

In addition to omni-lock, ckb-auth can also perform such upgrades.

To do when development of the XUDT/RCE is finalized

  1. We need to add checkings in build.rs file, to ensure the compiled xudt_rce binary does not change.
  2. One different way, is that you can try updating ckb-c-stdlib, if the binary hash stays the same, we can safely upgrade, otherwise we will need to maintain different versions of ckb-c-stdlib
  3. Update ckb_dlfcn.h to ckb-c-stdlib
  4. merge changes from master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.