Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Type id cells #728

Closed
SpectreMercury opened this issue Jul 11, 2024 · 1 comment · Fixed by #731
Closed

Create Type id cells #728

SpectreMercury opened this issue Jul 11, 2024 · 1 comment · Fixed by #731
Labels
enhancement New feature or request

Comments

@SpectreMercury
Copy link
Contributor

SpectreMercury commented Jul 11, 2024

Requirement: Support Creating Cells Based on Type ID

Background:

talks:https://talk.nervos.org/t/en-cn-misc-single-use-seals/8279/2

In the Type ID method on CKB, every seal on a seal chain must contain the first seal’s ID as genesis information. Type ID ensures that the type script gives cells unique IDs and restricts them from being changed throughout the seal chain’s lifecycle. This ID allows verifiers to retrieve the latest seal easily from a universal indexer on CKB.

Requirement:

We need the SDK to support the following features:

  • Generate Type ID: The SDK should be able to generate a unique Type ID.
  • Create Cell with Type ID: The SDK should be able to create a cell with the generated Type ID, ensuring that the Type ID remains immutable throughout the cell’s lifecycle.
@SpectreMercury SpectreMercury added the enhancement New feature or request label Jul 11, 2024
@homura
Copy link
Collaborator

homura commented Jul 16, 2024

@SpectreMercury We've created an example demonstrating how to create a TypeID cell with Lumos at #731. We hope this example is helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants