Skip to content

Commit

Permalink
Define Output Metadata Size
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Nov 9, 2023
1 parent bdf2614 commit ce3b115
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tips/TIP-0047/tip-0047.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ _Storage Score Parameters_ of the [IOTA 2.0 Protocol Parameters](../TIP-0049/tip

- Let the `Storage Score` of an output be the sum of:
- The `Storage Score Offset Output` of an output in storage, which is the sum of the `Offset Output Overhead` and
`Factor Data * Output Metadata Size` where `Offset Output Overhead` accounts for the overhead of storing any output
and `Output Metadata Size` is the size in bytes of the output's metadata.
`Factor Data * Output Metadata Size`, where:
- `Offset Output Overhead` accounts for the overhead of storing any output.
- `Output Metadata Size` is the size in bytes of the output's metadata and is the sum of:
- The length of an Output ID: `38`.
- The length of a Block ID: `36`.
- The length of a Slot Index: `4`.
- The `Factor Data * Serialized Output Size` where `Serialized Output Size` is the size in bytes of the serialized
output.
- The offsets defined by any subschemas (e.g. features or unlock conditions) of an output. These are defined with the
Expand Down

0 comments on commit ce3b115

Please sign in to comment.