Skip to content

Commit

Permalink
Fix outdated Rent Params reference & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Jan 29, 2024
1 parent 419c9a3 commit b1c8377
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions tips/TIP-0042/tip-0042.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ The account is the central component of the IOTA 2.0 ledger that enables:
- Staking IOTA coins for the validation of the network.
- Secure ownership of all digital assets on the ledger.

It was originally defined as the Alias Output in [TIP-18](../TIP-0018/tip-0018.md). The Account Output represents a
strict extension of the functionality of the Alias Output.
Its successor is the Alias Output, defined in [TIP-18](../TIP-0018/tip-0018.md). However, its functionality is
effectively split between the Account Output and the [Anchor Output](../TIP-0054/tip-0054.md).

## Summary of changes compared to TIP-18

Expand Down Expand Up @@ -155,7 +155,7 @@ provided in block signatures. A block issued from a block issuer account with a
signature will cause Mana to be burned from the account's Block Issuance Credit (BIC) balance. If the balance becomes
negative, the account is locked, meaning its output cannot be spent and it can no longer be used to issue blocks. Once
locked, an account can only be unlocked by allotting enough Mana to the account's BIC balance for it to become
non-negative again. Because the account itself cannot issue such a transaction, the block containing the alloting
non-negative again. Because the account itself cannot issue such a transaction, the block containing the allotting
transaction must be issued by another account. The feature can only be removed with an expiration mechanism in order to
disincentivize malicious behavior when issuing blocks. Any Mana generated or stored by an issuer account is locked to
that account.
Expand Down Expand Up @@ -284,10 +284,10 @@ A Block Issuer Feature incurs additional computational cost in order to maintain
due to having to keep them in memory. Due to this, such a feature has an additional storage score offset. The offset of
the feature is the sum of offsets of each contained key:

- If the contained key is of type `Ed25519 Public Key Block Issuer Key`, the offset is
`Storage Score Offset Ed25519 Block Issuer Key`.
- If the contained key is of type `Ed25519 Public Key Hash Block Issuer Key`, the offset is
`Storage Score Parameters::Offset Ed25519 Block Issuer Key`.

`Rent Parameters` are defined in [TIP-49](../TIP-0049/tip-0049.md).
`Storage Score Parameters` are defined in [TIP-49](../TIP-0049/tip-0049.md).

## Staking Feature

Expand Down Expand Up @@ -399,8 +399,8 @@ which they were selected to participate in the validator committee.
### Storage Score

A Staking Feature incurs additional computational cost in order to compute the total stake of a validator. Due to this,
such a feature has an additional storage score offset, the `Rent Parameters::Storage Score Offset Staking Feature` as
defined in [TIP-49](../TIP-0049/tip-0049.md).
such a feature has an additional storage score offset, the `Storage Score Parameters::Offset Staking Feature` as defined
in [TIP-49](../TIP-0049/tip-0049.md).

# Account Output

Expand Down Expand Up @@ -1051,8 +1051,10 @@ _Ed25519 Public Key Hash Block Issuer Key_. Therefore, the block's signature mus

## Alias to Account Conversion

_Alias Outputs_ in Stardust-based networks are converted to _Account Outputs_. Account Outputs' BIC balance is set to
`0`.
TODO: Describe when Alias Outputs are converted to Accounts and Anchor Outputs, respectively.

~~_Alias Outputs_ in Stardust-based networks are converted to _Account Outputs_. Account Outputs' BIC balance is set to
`0`.~~

## Block Issuer Accounts

Expand All @@ -1061,10 +1063,10 @@ these, a migration procedure is required so the network can be bootstrapped. Use
Feature to an _Alias Output_ which is converted to an _Account Output_ with a Block Issuer Feature and the Metadata
Feature is removed from the output. This transition is only done if all of the following conditions hold:

- The _Alias Output_'s `Amount` is at least `Rent Parameters::Storage Cost * Account Output Score`, with the latter
defined in [Implicit Account (Storage Score)](#storage-score-2), except that the `Block Issuer Keys Count` of the
output for the deposit calculation must be set to the value of the `Block Issuer Keys Count` read from the serialized
Block Issuer Feature in the to-be-converted _Alias Output_.
- The _Alias Output_'s `Amount` is at least `Storage Score Parameters::Storage Cost * Account Output Score`, with the
latter defined in [Implicit Account (Storage Score)](#storage-score-2), except that the `Block Issuer Keys Count` of
the output for the deposit calculation must be set to the value of the `Block Issuer Keys Count` read from the
serialized Block Issuer Feature in the to-be-converted _Alias Output_.
- The serialized Block Issuer Feature is prefixed with the ascii-encoded string `BlockIssuerFeature`, which is
`[0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65]` in hex
encoding, expressed as a list in JSON.
Expand Down

0 comments on commit b1c8377

Please sign in to comment.