Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Dec 13, 2023
1 parent 443f74b commit 0e849e0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion yellow-paper/docs/logs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@ title: Logs
---

Logs on Aztec are similar to logs on Ethereum and their goal is to allow smart contracts to communicate arbitrary data to the outside world.
Logs are events which are emitted during contract function execution.
Logs are events which are emitted during contract function execution.

There are 2 kinds of logs in Aztec protocol: unencrypted and encrypted.

## Unencrypted logs
Unencrypted logs are used to communicate public information out of smart contracts.
Unencrypted logs can be emitted from both public and private functions.

:::info
Emitting unencrypted logs from private functions can be a privacy leak but we decided to not forbid it because it might allow for interesting usecases like custom encryption schemes using FHE etc.
:::

## Encrypted logs
Encrypted logs can be emitted only from private functions.
This is because to encrypt the log we need to get a secret and it's impossible to privately manage secrets in public domain.

0 comments on commit 0e849e0

Please sign in to comment.