Skip to content

Commit

Permalink
Merge pull request #359 from 0xPolygonMiden/dominik_fix_docs_image_links
Browse files Browse the repository at this point in the history
docs: fix note images
  • Loading branch information
Dominik1999 authored Dec 14, 2023
2 parents d9a5642 + ced9c62 commit 53b29de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/src/architecture/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Miden aims to achieve parallel transaction execution and privacy. The UTXO-model
The diagram below illustrates the contents of a note:

<p align="center">
<img src="../../diagrams/architecture/note/Note.png">
<img src="../diagrams/architecture/note/Note.png">
</p>

As shown in the above picture:
Expand Down Expand Up @@ -62,12 +62,12 @@ This achieves the following properties:
To know a note’s nullifier, one needs to know all details of the note, e.g. the note's serial number. That means if a note is private and the operator stores only the note's hash, only those with the note details know if this note has been consumed already. Zcash first introduced this approach.

<p align="center">
<img src="../../diagrams/architecture/note/Nullifier.png">
<img src="../diagrams/architecture/note/Nullifier.png">
</p>

# Note lifecycle
New notes are being produced when executing a transaction. After verifying the transaction proof the Operator adds the note to the [Notes DB](https://0xpolygonmiden.github.io/miden-base/architecture/state.html#notes-database). Notes can be produced and consumed locally by users in local transactions or by the operator in a network transaction. Note consumption requires the transacting party to know the note data to compute the nullifier. After successful verification, the Operator sets the corresponding entry in the Nullifier DB to `1`.

<p align="center">
<img src="../../diagrams/architecture/note/Note_life_cycle.png">
<img src="../diagrams/architecture/note/Note_life_cycle.png">
</p>
4 changes: 2 additions & 2 deletions docs/src/architecture/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Transactions describe the state-transition of a single account that takes chain


<p align="center">
<img src="../diagrams/architecture/transaction/Transaction_Diagram.png" style="width: 75%;">
<img src="../diagrams/architecture/transaction/Transaction_diagram.png" style="width: 75%;">
</p>

\
Expand All @@ -36,7 +36,7 @@ In addition to specifying inputs and outputs, a transaction must be represented
The last point ensures that a transaction does not create or destroy any assets. A transaction can also include a user-defined transaction script. A transaction script is different to the [note scripts](https://0xpolygonmiden.github.io/miden-base/architecture/notes.html#script) that are executed during a transaction.

<p align="center">
<img src="../diagrams/architecture/transaction/Transaction_Program.png" style="width: 75%;">
<img src="../diagrams/architecture/transaction/Transaction_program.png" style="width: 75%;">
</p>

### Transaction outputs
Expand Down

0 comments on commit 53b29de

Please sign in to comment.