全部经验 · CCC (TypeScript SDK) · 从这里开始 · 术语表
Adding a wallet missing from CCC's connector via a SignersController subclass实践由所有者核对
由所有者核对 · 核对结果:部分正确 · 核对于 2026-11-19
To list a wallet that CCC's connector does not include yet, subclass ccc.SignersController (from @ckb-ccc/connector-react) and override addRealSigners: call this.addSigners(name, icon, [{ name: "CKB", signer }], context) with a ccc.Signer for that wallet, then await super.addRealSigners(context). Pass an instance to ccc.Provider as signersController. Wallets are shown in the order they are added, so adding yours before the super call puts it ahead of CCC's own. The Khie entry is drawn by the connector above that list and is not part of it; the hide-khie attribute removes it.
为什么重要: Without a custom SignersController, users of a wallet missing from CCC's built-in list, such as Cellula, cannot connect to the dApp at all.
Order and the Khie entry checked against the CCC source at e10b99d (@ckb-ccc/ccc 1.3.7, connector 2.4.0): packages/ccc/src/signersController.ts (addSigner appends) and packages/connector/src/scenes/selecting/wallets.ts.
代码模式
await this.addSigners("Cellula", cellulaIcon, [{ name: "CKB", signer: new CellulaWalletSigner(context.client) }], context);摘自提交,已缩短。
- 概念
- Witnesses and signatures
- 证据
- 由所有者核对: 由其来源项目的所有者核对,该所有者同时也是这些经验的发布者
- 首次出现
- 2026-11-06
- 最近改动
- 2026-11-06
- 最近核对
- 2026-11-19
- 对照提交的核对结果
- 部分正确:核心属实,但有一部分表述松散或范围过宽
来源(1)
- 2026-11-06 · LusoCryptoLabs/ckb-ward · 这个项目的更多经验
更多关于CCC (TypeScript SDK)
- Re-zero the witness lock before recomputing the sign message with getSignHashInfo
- Reserve co-signer witness space before completeFeeBy in multi-signer CCC transactions
- CCC EVM and Bitcoin signers pass the exact signed text through signMessageRaw
核对人: @LusoCryptoLabs (项目所有者), 2026-11-19.
引用这条经验
LusoCryptoLabs, "Adding a wallet missing from CCC's connector via a SignersController subclass", CKB lessons, https://pulse.lusocryptolabs.com/learned/ccc/adding-a-wallet-missing-from-ccc-s-connector-via-a-signersco, CC BY 4.0, last changed 2026-11-06.