Crates.io | ckb-type-id |
lib.rs | ckb-type-id |
version | 0.1.0-alpha.3 |
source | src |
created_at | 2023-02-08 07:28:43.402171 |
updated_at | 2023-06-07 02:11:18.050579 |
description | ckb type id library. |
homepage | |
repository | https://github.com/axonweb3/ckb-type-id |
max_upload_size | |
id | 779449 |
size | 7,939 |
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
You can see sample contracts and examples of contract construction in test-lib