Skip to content

Commit

Permalink
Use new Work Score Paramter name
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Oct 24, 2023
1 parent 5a98152 commit 3a94ef6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tips/TIP-0046/tip-0046.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ Data types and subschemas used throughout this TIP are defined in [TIP-21](../TI

This TIP uses the [BLAKE2b-256](https://tools.ietf.org/html/rfc7693) hash function.

## Ed25519 Signature Scheme

This TIP uses Ed25519 signatures according to [RFC 8032](https://tools.ietf.org/html/rfc8032).

## Block ID

A Block ID denotes an identifier of a block, with type `ByteArray[36]`. It is created from three separately spelled out
Expand All @@ -76,7 +72,7 @@ The Work Score expresses the cost of an object in terms of computational require
differs from the storage deposit in that it only accounts for one-off costs that the processing of a block and its
payload incur, while the storage deposit accounts for recurring costs like data storage or holding block issuer keys in
memory. The work score attempts to encapsulate all processing steps carried out on this object throughout its life in
the node. The calculation of the work score is done with the use of the _Work Score Structure_ protocol parameters. The
the node. The calculation of the work score is done with the use of the _Work Score Parameters_ protocol parameters. The
work score is expressed as a `uint32` and all operations used in its calculation are integer arithmetic.

## Time
Expand Down Expand Up @@ -194,7 +190,7 @@ In order for the signature to be valid all of the following conditions must hold

Let the Work Score of a Signature be defined as follows.

- If the type is _Ed25519 Signature_ the work score is `Work Score Structure::Signature Ed25519`.
- If the type is _Ed25519 Signature_ the work score is `Work Score Parameters::Signature Ed25519`.

# Blocks

Expand Down Expand Up @@ -447,10 +443,10 @@ specification:
Let the work score of a _Basic Block_ be defined as follows.

- Let `Payload Score` be the work score of the contained `Payload` if it exists, or `0` if it does not exist.
- If the type is _Tagged Data_ the work score is `Work Score Structure::Data Byte * Tagged Data Size` where:
- If the type is _Tagged Data_ the work score is `Work Score Parameters::Data Byte * Tagged Data Size` where:
- `Tagged Data Size` is the size of the serialized _Tagged Data_.
- If the type is _Transaction_ the work score is defined in TIP-45.
- Return `Work Score Structure::Block + Payload Score`.
- Return `Work Score Parameters::Block + Payload Score`.

## Validation Block

Expand Down

0 comments on commit 3a94ef6

Please sign in to comment.