Skip to content

Commit

Permalink
input-block related extension fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jan 9, 2025
1 parent 7dfd05e commit c5814df
Showing 1 changed file with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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


/**
Expand Down

0 comments on commit c5814df

Please sign in to comment.