From c5814df6716b9bbc4d56c2270af5629e22d64403 Mon Sep 17 00:00:00 2001 From: Alexander Chepurnoy Date: Fri, 10 Jan 2025 00:16:54 +0300 Subject: [PATCH] input-block related extension fields --- .../history/extension/Extension.scala | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/ergo-core/src/main/scala/org/ergoplatform/modifiers/history/extension/Extension.scala b/ergo-core/src/main/scala/org/ergoplatform/modifiers/history/extension/Extension.scala index 4f48ecc771..bfb7af75a4 100644 --- a/ergo-core/src/main/scala/org/ergoplatform/modifiers/history/extension/Extension.scala +++ b/ergo-core/src/main/scala/org/ergoplatform/modifiers/history/extension/Extension.scala @@ -72,19 +72,35 @@ object Extension extends ApiCodecs { val ValidationRulesPrefix: Byte = 0x02 /** - * Prefix for keys related to sub-blocks related data. + * Prefix for keys related to input-blocks related data. */ - val SubBlocksDataPrefix: Byte = 0x03 + val InputBlocksDataPrefix: Byte = 0x03 - val PrevSubBlockIdKey: Array[Byte] = Array(SubBlocksDataPrefix, 0x00) + /** + * Digest (Merkle tree root) of new first-class transactions since last input-block + */ + val InputBlockTransactionsDigestKey: Array[Byte] = Array(InputBlocksDataPrefix, 0x00) - val SubBlockTransactionsDigestKey: Array[Byte] = Array(SubBlocksDataPrefix, 0x01) + /** + * Digest (Merkle tree root) first class transactions since ordering block till last input-block + */ + val PreviousInputBlockTransactionsDigestKey: Array[Byte] = Array(InputBlocksDataPrefix, 0x01) /** - * Prefix for keys related to sidechains data. + * Reference to last seen input block + */ + val PrevSubBlockIdKey: Array[Byte] = Array(InputBlocksDataPrefix, 0x02) + + + /** + * Prefix for keys related to sidechains data. Not used for now, reserved for future. */ val SidechainsDataPrefix: Byte = 0x04 + /** + * Prefix for keys related to rollup related blobs. Not used for now, reserved for future. + */ + val RollupBlobsDataPrefix: Byte = 0x05 /**