Skip to content

Conversation

@Hanssen0
Copy link
Member

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2025

🦋 Changeset detected

Latest commit: 72c6956

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@ckb-ccc/core Minor
@ckb-ccc/shell Minor
@ckb-ccc/type-id Patch
@ckb-ccc/did-ckb Patch
@ckb-ccc/eip6963 Patch
@ckb-ccc/joy-id Patch
@ckb-ccc/lumos-patches Patch
@ckb-ccc/nip07 Patch
@ckb-ccc/okx Patch
@ckb-ccc/rei Patch
@ckb-ccc/spore Patch
@ckb-ccc/ssri Patch
@ckb-ccc/udt Patch
@ckb-ccc/uni-sat Patch
@ckb-ccc/utxo-global Patch
@ckb-ccc/xverse Patch
@ckb-ccc/ccc Patch
ckb-ccc Patch
@ckb-ccc/connector Patch
@ckb-ccc/connector-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for appccc ready!

Name Link
🔨 Latest commit 72c6956
🔍 Latest deploy log https://app.netlify.com/projects/appccc/deploys/695fbcb94ef22200088ec7ec
😎 Deploy Preview https://deploy-preview-337--appccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (🔴 down 18 from production)
Accessibility: 89 (🟢 up 1 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for apiccc ready!

Name Link
🔨 Latest commit 72c6956
🔍 Latest deploy log https://app.netlify.com/projects/apiccc/deploys/695fbcb96ebad500082d0393
😎 Deploy Preview https://deploy-preview-337--apiccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 82 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 95 (🟢 up 1 from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for liveccc ready!

Name Link
🔨 Latest commit 72c6956
🔍 Latest deploy log https://app.netlify.com/projects/liveccc/deploys/695fbcb9616bd60008192bea
😎 Deploy Preview https://deploy-preview-337--liveccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 34 (🔴 down 1 from production)
Accessibility: 88 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Hanssen0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the project's capabilities by introducing a dedicated package for DID CKB operations. It lays the groundwork for managing decentralized identities on the CKB network, providing essential functions for their lifecycle and integration with existing core components. The inclusion of comprehensive examples will aid developers in quickly adopting these new features.

Highlights

  • New DID CKB Package: Introduced a new package, @ckb-ccc/did-ckb, which provides core functionalities for Decentralized Identifiers (DIDs) on the CKB blockchain.
  • DID CKB Script Integration: Added the KnownScript.DidCkb definition to the @ckb-ccc/core package, including specific configurations for both Mainnet and Testnet environments.
  • DID Operations: Implemented functions for basic DID CKB operations: createDid to mint new DIDs, destroyDid to remove them, and transferDid to change their ownership.
  • Example Usage: Included new example scripts in packages/examples demonstrating how to create, destroy, and transfer DID CKB cells, including an example for creating a DID with a local ID and PLC authorization.
  • Dependency Updates: Updated dependencies across packages/examples, packages/playground, and packages/shell to integrate the new @ckb-ccc/did-ckb package and related cryptographic libraries (@noble/curves, @noble/hashes).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the new @ckb-ccc/did-ckb package, providing essential functionalities for Decentralized Identifier (DID) operations on CKB. The changes are comprehensive, including the core logic for creating, transferring, and destroying DIDs, along with necessary codec implementations for data serialization. The addition of DidCkb to KnownScript and its configurations for both mainnet and testnet are correctly implemented.

The new package is well-integrated into the existing ecosystem, with updates to the shell package, playground, and documentation configuration. The inclusion of clear and practical examples is particularly helpful, demonstrating the usage of the new DID features effectively.

I've found one minor issue regarding the package description in package.json. Otherwise, the code is well-structured, clean, and follows the project's conventions. Great work on this feature!

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for docsccc ready!

Name Link
🔨 Latest commit 72c6956
🔍 Latest deploy log https://app.netlify.com/projects/docsccc/deploys/695fbcb92b8dc60008d5132b
😎 Deploy Preview https://deploy-preview-337--docsccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (🟢 up 5 from production)
Accessibility: 88 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@Hanssen0 Hanssen0 force-pushed the feat/did-ckb branch 6 times, most recently from 2db08c2 to 9e52b2d Compare January 6, 2026 16:53
@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 6, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new packages, @ckb-ccc/type-id and @ckb-ccc/did-ckb, to support Decentralized Identifiers on CKB. The implementation is well-structured, leveraging a generic buildTypeIdOperations factory to create, transfer, and destroy Type ID-based assets, which is a great pattern for reusability. The new did-ckb package builds upon this to provide DID-specific functionality. The code is clean and includes helpful examples. I've identified a couple of areas for improvement in the packages/type-id/package.json file to enhance correctness and maintainability, detailed in the comments below.

@Hanssen0 Hanssen0 force-pushed the feat/did-ckb branch 3 times, most recently from b0ac2d4 to 6455238 Compare January 6, 2026 17:14
@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 6, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new packages, @ckb-ccc/did-ckb and @ckb-ccc/type-id, to support Decentralized Identifiers on CKB. The architecture is well-designed, with @ckb-ccc/type-id providing a generic framework for Type ID-based scripts, which @ckb-ccc/did-ckb then utilizes for its specific implementation. The PR also includes comprehensive examples and necessary updates to the playground environment, which is great for usability. The overall code quality is high. I've provided a couple of suggestions to optimize performance by caching script information to avoid redundant asynchronous calls.

@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 6, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new packages, @ckb-ccc/did-ckb and @ckb-ccc/type-id, to support Decentralized Identifier (DID) operations on CKB. The changes are extensive, including new package configurations, source code, and integration into existing packages like shell, examples, and playground. The implementation of type-id provides a solid foundation for did-ckb. The code is well-structured and follows the existing patterns of the codebase. The new examples are clear and helpful for understanding the new functionality. I have a couple of suggestions to improve flexibility and readability.

@Hanssen0 Hanssen0 force-pushed the feat/did-ckb branch 2 times, most recently from 261c91a to 042fa01 Compare January 6, 2026 17:50
@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 6, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new packages, @ckb-ccc/type-id and @ckb-ccc/did-ckb, for handling Type ID and DID operations on CKB. The implementation is clean, well-structured, and follows the existing patterns in the codebase. The introduction of a generic buildTypeIdOperations function in the @ckb-ccc/type-id package is an excellent design choice, promoting reusability. The @ckb-ccc/did-ckb package effectively utilizes this for its DID-specific logic. The PR is comprehensive, including clear examples and necessary updates to the playground. I have one suggestion to improve the forward-compatibility of a data codec, which I've detailed in a specific comment. Overall, this is a high-quality contribution.

@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 6, 2026

/canary

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

🚀 Canary version published successfully! View workflow run

The following packages have been published to npm:

@Hanssen0 Hanssen0 changed the base branch from release to master January 6, 2026 18:24
@Hanssen0 Hanssen0 changed the base branch from master to release January 7, 2026 14:24
@Hanssen0 Hanssen0 changed the base branch from release to releases/next January 7, 2026 14:24
@Hanssen0 Hanssen0 changed the base branch from releases/next to release January 7, 2026 14:26
@rink1969
Copy link

rink1969 commented Jan 8, 2026

web5 did cache has switch to this SDK, it work well and reduce many code. https://github.com/web5fans/web5-did-cache/tree/ccc-sdk
just one point:
Type args of web5 did cell reduce to 20 bytes, can save occupied CKB.
https://github.com/web5fans/did-ckb/blob/main/ts-tests/did-ckb-ts/src/index.test.ts#L143

@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 8, 2026

/canary

Type args of web5 did cell reduce to 20 bytes, can save occupied CKB.

This surprised me because the args in the original type id design are 32 bytes long. Anyway, it's fixed in the latest code. Please try again. @rink1969

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🚀 Canary version published successfully! View workflow run

The following packages have been published to npm:

@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 8, 2026

/canary

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🚀 Canary version published successfully! View workflow run

The following packages have been published to npm:

@Hanssen0 Hanssen0 force-pushed the feat/did-ckb branch 3 times, most recently from 71b7193 to fd00646 Compare January 8, 2026 12:18
@Hanssen0 Hanssen0 changed the base branch from release to releases/next January 8, 2026 12:25
@Hanssen0 Hanssen0 changed the base branch from releases/next to release January 8, 2026 12:33
@Hanssen0 Hanssen0 changed the base branch from release to releases/next January 8, 2026 12:33
@Hanssen0 Hanssen0 force-pushed the feat/did-ckb branch 2 times, most recently from 20f0b3e to a73127f Compare January 8, 2026 12:57
@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 8, 2026

/canary

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🚀 Canary version published successfully! View workflow run

The following packages have been published to npm:

@Hanssen0
Copy link
Member Author

Hanssen0 commented Jan 8, 2026

/canary

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🚀 Canary version published successfully! View workflow run

The following packages have been published to npm:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants