The Command
Encapsulating prover instructions as portable spells.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Command
ARCANUM SCHOOL: Enchantment // Binding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CAIRO PATTERN //
trait ICommand<T> { fn execute(self: @T); }
#[derive(Copy, Drop)]
struct GenerateProofCommand { data: felt252 }
impl GenProofImpl of ICommand<GenerateProofCommand> {
fn execute(self: @GenerateProofCommand) {
// execute magic
}
}
Binds the intent of proof generation into a tangible object, capable of being stored, delayed, or reversed.
Runic Tags:
#cairo
#design-pattern
#command