axonweb3 / ckb-type-id

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ckb-type-id

ckb has a built-in type id contract, which is used to constrain the behavior of id generation.

However, it is a standalone contract and will take the place of cell type script, making it impossible to use other contracts.

This library writes the validation logic of type id as a library that can be embedded in any contract, allowing developers to embed the validation logic of type id in their own contracts, and at the same time, it is relatively small in consumption.

The corresponding c version of the library is link

Usage

You can see sample contracts and examples of contract construction in test-lib

About

License:MIT License


Languages

Language:Rust 100.0%