Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.32 KB

README.md

File metadata and controls

64 lines (43 loc) · 2.32 KB

CKB Multisig CoBuild PoC

Contributing Guidelines

Disclaimer

This is a Proof-of-Concept demo to show how to use the building packet lock actions in CoBuild to collect multisig signatures.

Background

This PoC utilizes the CoBuild building packet as an intermediate format for enabling collaboration among various tools in the collection of multisig signatures. Currently, it supports ckb-cli and Neuron.

CoBuild enables lock scripts to include their pending actions in the lock_actions field of the building packet.

This PoC defines MultisigAction to store the mulgisig config and collected signatures.

array PubkeyHash [byte; 20];
vector PubkeyHashVec <PubkeyHash>;
table MultisigConfig {
    require_first_n: byte,
    threshold: byte,
    signer_pubkey_hashes: PubkeyHashVec,
}
array Signature [byte; 65];
struct PubkeyHashSignaturePair {
    pubkey_hash: PubkeyHash,
    signature: Signature,
}
vector PubkeyHashSignaturePairVec <PubkeyHashSignaturePair>;
table MultisigAction {
    config: MultisigConfig,
    signed: PubkeyHashSignaturePairVec,
}

Getting Started

First, run the development server:

pnpm start

Open http://localhost:3000 with your browser to see the result.

This will use the testnet and the public RPC node https://testnet.ckbapp.dev/. See docs/dev.md about how to set up a dev chain for local development and testing.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

See the list of configurable environment variables in the file env.example.