ckb-type-id

Crates.iockb-type-id
lib.rsckb-type-id
version0.1.0-alpha.3
sourcesrc
created_at2023-02-08 07:28:43.402171
updated_at2023-06-07 02:11:18.050579
descriptionckb type id library.
homepage
repositoryhttps://github.com/axonweb3/ckb-type-id
max_upload_size
id779449
size7,939
漂流 (driftluo)

documentation

README

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

Commit count: 14

cargo fmt