Skip to content

Commit a7b5604

Browse files
committed
Ledger/transaction_logic: add fields doc
1 parent ae10618 commit a7b5604

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ledger/src/scan_state/transaction_logic.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,11 +2642,19 @@ pub mod zkapp_command {
26422642
/// <https://github.com/MinaProtocol/mina/blob/2ee6e004ba8c6a0541056076aab22ea162f7eb3a/src/lib/pickles/pickles_intf.ml#L316>
26432643
pub type SideLoadedProof = Arc<mina_p2p_messages::v2::PicklesProofProofsVerifiedMaxStableV2>;
26442644

2645+
/// Authorization methods for zkApp account updates.
2646+
///
2647+
/// Defines how an account update is authorized to modify an account's state.
2648+
///
26452649
/// <https://github.com/MinaProtocol/mina/blob/2ee6e004ba8c6a0541056076aab22ea162f7eb3a/src/lib/mina_base/control.ml#L11>
26462650
#[derive(Clone, PartialEq)]
26472651
pub enum Control {
2652+
/// Verified by a zero-knowledge proof against the account's verification
2653+
/// key.
26482654
Proof(SideLoadedProof),
2655+
/// Signed by the account's private key.
26492656
Signature(Signature),
2657+
/// No authorization (only valid for certain operations).
26502658
NoneGiven,
26512659
}
26522660

0 commit comments

Comments
 (0)