Skip to content

Commit

Permalink
Format Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Oct 24, 2023
1 parent ebd9db0 commit fdb4bf7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tips/TIP-0049/tip-0049.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ created: 2023-08-28

# Motivation

The protocol parameters contain parameters that a node needs to apply to the components in order to communicate with other nodes and to process blocks properly.
The protocol parameters contain parameters that a node needs to apply to the components in order to communicate with
other nodes and to process blocks properly.

## Structure

Expand Down Expand Up @@ -448,15 +449,18 @@ The protocol parameters contain parameters that a node needs to apply to the com
</tr>
</table>

When referring to Protocol Parameters contained in subschemas in other TIPs, one may use namespacing with a `::` separator for disambiguation. For instance, `Work Score Parameters::Block` refers to the `Block` parameter inside the `Work Score Parameters`.
When referring to Protocol Parameters contained in subschemas in other TIPs, one may use namespacing with a `::`
separator for disambiguation. For instance, `Work Score Parameters::Block` refers to the `Block` parameter inside the
`Work Score Parameters`.

## Protocol Parameter Hash

The Protocol Parameter Hash is used in signaling protocol parameter upgrades and is a field in the Validation Block.

The Protocol Parameter Hash is computed as follows:
* Let `Protocol Parameter Bytes` be the serialized protocol parameter.
* Let the resulting hash be the BLAKE2b-256 hash over `Protocol Parameter Bytes`.

- Let `Protocol Parameter Bytes` be the serialized protocol parameter.
- Let the resulting hash be the BLAKE2b-256 hash over `Protocol Parameter Bytes`.

### Protocol parameter example

Expand Down Expand Up @@ -539,6 +543,7 @@ The example is a protocol parameter filled with random values:
```

Serialized bytes:

```
[0 3 10 84 101 115 116 74 117 110 103 108 101 3 116 103 108 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 93 45 211 247 223 9 0 46 219 11 101 0 0 0 0 10 13 63 1 17 2 0 10 0 0 0 20 0 0 0 32 151 64 76 144 21 10 0 0 0 10 10 0 0 0 15 0 30 0 10 0 0 0 20 0 0 0 24 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 12 0 32 161 7 0 160 134 1 0 232 3 0 0 100 0 0 0 7 5 7 8 130 4 0 0 2 0 0 0 0 0 0 0 8 1 0 0 0 0 0 0 0 31]
```
Expand Down

0 comments on commit fdb4bf7

Please sign in to comment.