Skip to content

Commit

Permalink
Improves unshielding tx verification in fee specs
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Apr 17, 2023
1 parent bc60a4e commit ef1f892
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion documentation/specs/src/economics/fee-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,13 @@ The first condition can be tested statically and requires that:
purposes)

The spending key associated with this operation could be relative to any address
as long as the signature of the transfer itself is valid.
as long as the signature of the transfer itself is valid. Verifying that the
origin of the transaction is the same as the wrapper's source would be
impossible anyway for two reasons:

- the transaction is signed by the `masp` internal address, making it impossible
to check against the public key field of the wrapper
- transparent addresses and spending keys are unrelated

If any of the checks fail, the transaction must be discarded. Once these
controls have been performed, the block proposer should run the actual transfer
Expand Down

0 comments on commit ef1f892

Please sign in to comment.