File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
noir-projects/aztec-nr/aztec/src/messages/logs Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ pub fn private_event_to_message_plaintext<Event>(
1818where
1919 Event : EventInterface + Serialize ,
2020{
21+ // We use `Serialize` because we want for events to be processable by off-chain actors, e.g. block explorers,
22+ // wallets and apps, without having to rely on contract invocation. If we used `Packable` we'd need to call utility
23+ // functions in order to unpack events, which would introduce a level of complexity we don't currently think is
24+ // worth the savings in DA (for public events) and proving time (when encrypting private event messages).
2125 let serialized_event = event .serialize ();
2226
2327 let mut msg_content = [0 ; PRIVATE_EVENT_RESERVED_FIELDS + <Event as Serialize >::N ];
You can’t perform that action at this time.
0 commit comments