Todas as lições · CCC (TypeScript SDK) · Começa aqui · Glossário
Adding a wallet missing from CCC's connector via a SignersController subclassPráticoVerificada pelo dono
Verificada pelo dono · Verificação: em parte certa · Verificada em 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.
Porque importa: 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.
Padrão
await this.addSigners("Cellula", cellulaIcon, [{ name: "CKB", signer: new CellulaWalletSigner(context.client) }], context);Tirado do commit, encurtado.
- Conceitos
- Witnesses and signatures
- Evidência
- Verificada pelo dono: verificada pelo dono do projeto de onde veio, que também publica estas lições
- Vista pela primeira vez
- 2026-11-06
- Última mudança
- 2026-11-06
- Última verificação
- 2026-11-19
- Verificação contra o commit
- em parte certa: um núcleo verdadeiro, com uma parte solta ou demasiado larga
Fontes (1)
- 2026-11-06 · LusoCryptoLabs/ckb-ward · mais deste projeto
Mais sobre 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
Verificada por @LusoCryptoLabs (dono do projeto), 2026-11-19.
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
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.