/midnight-skills:midnight-consensusfrom midnight-skills
Explains Midnight Network consensus: AURA block production, GRANDPA finality, Cardano Partnerchain validator selection via SPO stake delegation, and hybrid permissioned deployments.
Ships in midnight-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Midnight Network uses a modified Substrate consensus stack: AURA for block production and GRANDPA for finality. Both are extended for Midnight as a Cardano Partnerchain.
flowchart TB
subgraph Selection["Validator selection"]
SPO["Cardano SPO stake delegation"]
Perm["Optional permissioned validators"]
VS["Custom validator set function"]
SPO --> VS
Perm --> VS
end
subgraph Production["Block production — AURA"]
VS --> Slots["Round-robin slots + session keys"]
Slots --> Block["New block proposed"]
end
subgraph Finality["Finality — GRANDPA"]
Block --> Votes["Validator votes on chain"]
Votes --> Final["Provable finality"]
end
Unlike standard Substrate chains, Midnight uses a custom validator set selection function that:
| Model | Role |
|---|---|
| SPO delegation | Bridges Cardano stake into Partnerchain validator eligibility |
| Permissioned set | Adds known operators for regulated or consortium networks |
| Custom selection | Combines both into the active session validator set |
AURA (Authority Round) is a proof-of-authority (PoA) algorithm that determines which validator produces each block.
AURA is not Midnight-specific; it originated in OpenEthereum. See the Polkadot protocol glossary — AURA.
sequenceDiagram
participant V1 as Validator 1
participant V2 as Validator 2
participant V3 as Validator 3
participant Chain as Chain
Note over V1,V3: Slot N — Validator 1's turn
V1->>Chain: Produce block N
Note over V1,V3: Slot N+1 — Validator 2's turn
V2->>Chain: Produce block N+1
Note over V1,V3: Slot N+2 — Validator 3's turn
V3->>Chain: Produce block N+2
Signing: Block authorship messages in AURA are signed with sr25519 (see the Cryptography skill).
GRANDPA (GHOST-based Recursive ANcestor Deriving Prefix Agreement) provides asynchronous, provable finality.
flowchart LR
A["Blocks produced (AURA)"] --> B["GRANDPA voters observe chain"]
B --> C{"≥ threshold support?"}
C -->|Yes| D["Block finalized — irreversible"]
C -->|No| E["Remains unfinalized / fork possible"]
Signing: GRANDPA finality messages use Ed25519.
| Layer | Responsibility | Midnight extension |
|---|---|---|
| AURA | Who builds the next block | Standard PoA over Partnerchain validator set |
| GRANDPA | Which blocks are final | Standard async finality gadget |
| Validator set | Who may participate | SPO delegation + optional permissioned operators |
Key insight: Block production can continue while GRANDPA finalizes earlier blocks asynchronously — throughput and safety are decoupled.
midnight-cryptography/ — signature schemes used by AURA and GRANDPAmidnight-onchain-logic/ — runtime pallets (pallet-aura, pallet-grandpa, session management)midnight-p2p-networking/ — how validators discover and communicateWhat SKILL.md sets; muted values are Claude Code's defaults
43 skills in this plugin
/1am-walletIntegrate the 1AM wallet for dust-free contract deployment and transaction flow on Midnight Network. Use this skill whenever a user is building a Midnight Network dApp, connecting to the 1AM browser extension, deploying or calling a Compact contract, handling ZK proving, setting up providers, or asking about dust-free transaction flow. Also use it for indexer patching, private state providers, payload encryption, or any question involving window.midnight['1am']./android-example-votingBuild a voting/poll dApp on Midnight Network using the Kuira Android SDK — Compact smart contract with create/cast/close circuits, passkey-derived identity, embedded wallet, Compose UI, reactive ledger reads via observeLedger(), and on-device ZK proving. Use when building a poll or voting dApp targeting Android./npx claudepluginhub kali-decoder/midnight-skills --plugin midnight-skillsOther plugins' skills for the same job