From ce3b115f690b4708fa55e43da544b1ecd1737666 Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Thu, 9 Nov 2023 10:43:37 +0100 Subject: [PATCH] Define `Output Metadata Size` --- tips/TIP-0047/tip-0047.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tips/TIP-0047/tip-0047.md b/tips/TIP-0047/tip-0047.md index 9b6392258..1fcef89ce 100644 --- a/tips/TIP-0047/tip-0047.md +++ b/tips/TIP-0047/tip-0047.md @@ -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