Lab 14 of 15 · rank P1

Your first multisig rule: 2-of-3

Open Examples → Policy board. The inputs s0, s1, s2 are the first three signer slots (1 = that signer signed). Wire allow so it is 1 exactly when at least two of them are 1. Leave every other pin as it is: the pin order is the wallet's input word. Test it in the policy simulator, then etch and register the program to use it at /multisig.

← All labsNext lab →
  1. 1
    Build itPorts named s0, s1, s2 and allow
  2. 2
    Pass the truth table8 rows checked
  3. 3
    Etch it (optional)a verified die in your project
⊼
Cellsclick one, then click the canvas

Build your die

Turn logic into a permanent, verifiable part.

NAND used0 / par 12
LATCH used0 / par 0
Ainput · pin0Youtput · pin
Pick a cell on the left, click to place it · drag from an output pin to an input pin to wire · click a wire to remove it · click a cell to rename it
→ Y=0

What it should do

s0 s1 s2allow
0 0 00
0 0 10
0 1 00
0 1 11
1 0 00
1 0 11
1 1 01
1 1 11

Stuck?

Three ANDs for the pairs (s0·s1, s0·s2, s1·s2) and two ORs to combine them.

Par is 12 NAND. Using more still passes here. To etch it as a verified die that mines, keep it within 24 NAND-equivalent (a LATCH counts 2): the verifier refuses bigger designs, so padding can't buy mining weight.

Etch it as a die (optional)

Turn this circuit into a verified die you own. It burns 0 NAND. Get materials at the Foundry.

connect a wallet to pick a project