Skip to content

Commit

Permalink
Fix Unlock Syntactic Validation
Browse files Browse the repository at this point in the history
A reference index must be Max Inputs Count - 1, because it otherwise could be a self reference (which is not allowed in the unlocks validation, but not point in allowing that for a reference unlock then in the first place)
  • Loading branch information
Thoralf-M authored Jul 21, 2023
1 parent e30ee79 commit c80953f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tips/TIP-0018/tip-0018.md
Original file line number Diff line number Diff line change
Expand Up @@ -3726,7 +3726,7 @@ always need to be one *Alias Unlock* referencing a greater index.

#### Alias Unlock Syntactic Validation

- It must hold that 0 ≤ `Alias Reference Unlock Index` < `Max Inputs Count`.
- It must hold that 0 ≤ `Alias Reference Unlock Index` < `Max Inputs Count - 1`.

#### Alias Unlock Semantic Validation

Expand Down Expand Up @@ -3786,7 +3786,7 @@ must hold that i > k. Hence, an <i>NFT Unlock</i> can only reference an *Unlock*

#### NFT Unlock Syntactic Validation

- It must hold that 0 ≤ `NFT Reference Unlock Index` < `Max Inputs Count`.
- It must hold that 0 ≤ `NFT Reference Unlock Index` < `Max Inputs Count - 1`.

#### NFT Unlock Semantic Validation

Expand Down

0 comments on commit c80953f

Please sign in to comment.