Skip to content

Libraries to register data on CKB and guarantee no duplicates.

License

Notifications You must be signed in to change notification settings

cryptape/ckb-global-registry

Repository files navigation

CKB Global Registry

License GitHub Actions

Libraries to build global registry on CKB.

Description

Libraries to register data on CKB and guarantee no duplicates.

Background

In a blockchain which uses a UTXO based model, there is no built-in global state which could be modified parallelly.

For example, if the whole global state is stored in an unspent UTXO, when two transactions want to update the state at a same time, there will be only one of them could success. Because those two transactions are conflicted due to double-spending. The failed transaction requires updates: at least one of its inputs has to be replaced with a new out point, and itself has to be re-signed.

This repository provides methods to help users to build a global registry in their own contracts to store global state in several CKB cells, so that to modify the global state parallelly.

Crates

Examples

There is one demo contracts:

License

Licensed under MIT License.

About

Libraries to register data on CKB and guarantee no duplicates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published