Sure! The Zcash Protocol Specification: https://zips.z.cash/protocol/protocol.pdf
However, it is a LOT of reading, even with an AI (which often gets confused or jumbles things up), so I’ll summarise it for you!
Essentially, and this is VERY paraphrased, but basically:
In Orchard, there are no inputs or outputs. Instead, there is only one primitive, the “Action”, which simply denotes the movement of positive funds from point A to point B. A transaction must have enough actions to account for all funds going in or out.
Each Action consists of a nullifier (a random string you reveal to let others know that your signature has been spent, derived via your nullifier derivation key), and a note commitment hash (cmx), which represents components of the note you claim to spend. The cmx, the nullifier, etc, all then become the next cmx for when your money needs to be spent.
To emulate an “input”, you simply input money (i.e. spend a note) by creating an Action, but the recipient is a dummy address. Once you do this, the funds have “entered” the transaction. Then in the same transaction, you create another Action with an input value of 0 and a dummy input note (i.e. it will use funds already available in the transaction) and use a legitimate recipient to send the funds to the recipient.
Every Orchard transaction must have two or more Actions, to maintain the anonymity set, i.e. an input and an output.
After you create your transaction, you then generate an authentication digest, which you then sign. This signature signs each individual part of the transaction.
Then you generate a Halo2 proof (the Orchard Action circuit) that runs a computation to prove that all aspects of the transactions are correct, such as the nullifier exists and the balance is correct, and other things.
Once this is done, the transaction is sent as-is to the validators, who merely verify the proof and be done with it.
The issue with it is that the circuit the validators use to verify a transaction, they have the same gates as the one you use to send your transaction. So every validator can only ever verify the exact computation you did. The validators cannot perform any other computations that you didn’t do, since the proof uses private inputs that are not revealed.
That’s why it is impossible to program any DarkFi within an Orchard transaction.