Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/little-zebras-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ckb-ccc/core": minor
---

feat(core): multisig Signers

17 changes: 17 additions & 0 deletions packages/core/src/client/clientPublicMainnet.advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ export const MAINNET_SCRIPTS: Record<KnownScript, ScriptInfoLike | undefined> =
},
],
},
[KnownScript.Secp256k1MultisigV2Beta]: {
codeHash:
"0xd1a9f877aed3f5e07cb9c52b61ab96d06f250ae6883cc7f0a2423db0976fc821",
hashType: "type",
cellDeps: [
{
cellDep: {
outPoint: {
txHash:
"0x44be4f4feda80c0e41783ab10e191df3b2bb5c3731b0970c916dbec385dcdc60",
index: 0,
},
depType: "depGroup",
},
},
],
},
[KnownScript.Secp256k1MultisigV2]: {
codeHash:
"0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29",
Expand Down
17 changes: 17 additions & 0 deletions packages/core/src/client/clientPublicTestnet.advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ export const TESTNET_SCRIPTS: Record<KnownScript, ScriptInfoLike> =
},
],
},
[KnownScript.Secp256k1MultisigV2Beta]: {
codeHash:
"0x765b3ed6ae264b335d07e73ac332bf2c0f38f8d3340ed521cb447b4c42dd5f09",
hashType: "type",
cellDeps: [
{
cellDep: {
outPoint: {
txHash:
"0xf2013f123b2cb745e3fdf5c935a3925647496f88090503eef58332a9245b4172",
index: 0,
},
depType: "depGroup",
},
},
],
},
[KnownScript.Secp256k1MultisigV2]: {
codeHash:
"0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/client/knownScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum KnownScript {
NervosDao = "NervosDao",
Secp256k1Blake160 = "Secp256k1Blake160",
Secp256k1Multisig = "Secp256k1Multisig",
Secp256k1MultisigV2Beta = "Secp256k1MultisigV2Beta", // Fix rare failing case (https://github.com/nervosnetwork/ckb-system-scripts/pull/98)
Secp256k1MultisigV2 = "Secp256k1MultisigV2", // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
AnyoneCanPay = "AnyoneCanPay",
TypeId = "TypeId",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/signer/ckb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ export * from "./secp256k1Signing.js";
export * from "./signerCkbPrivateKey.js";
export * from "./signerCkbPublicKey.js";
export * from "./signerCkbScriptReadonly.js";
export * from "./signerMultisigCkbPrivateKey.js";
export * from "./signerMultisigCkbReadonly.js";
export * from "./verifyJoyId.js";
Loading