Skip to content

Commit

Permalink
update mux
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoGalteland committed Mar 7, 2024
1 parent 21c2cac commit 3b66777
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/src/design/gadgets/multiplexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Given a boolean flag $\textsf{choice}$, this gadget is used for selecting one of two values ($\textsf{left}$ and $\textsf{right}$) based on the boolean flag.
If $\textsf{choice}$ is true, it returns $\textsf{right}$; otherwise, it returns $\textsf{left}$. This functionality is crucial for circuits that require conditional logic.
We use a multiplexer to compute differently for ZEC or for non-ZEC assets in Orchard protocol.


## Chip instructions
Expand Down

0 comments on commit 3b66777

Please sign in to comment.