my-cloud / ruthenium

Golang implementation of the Ruthenium protocol
The Unlicense
11 stars 1 forks source link

Input public key is not verified against output address #244

Closed JeremyPansier closed 10 months ago

JeremyPansier commented 11 months ago

To Reproduce Steps to reproduce the behavior:

  1. Add a transaction using a private key for the input and an output which address does not derive from this private key

Expected behavior The transaction is rejected and not broadcasted. A neighbor blockchain having a block with this transaction is rejected.

Actual behavior The transaction is validated and broadcasted. A neighbor blockchain having a block with this transaction is successfully verified.