leapdao / leap-core

library for tx and block signing
GNU Affero General Public License v3.0
15 stars 5 forks source link

SigDataBuf can be called on an unsigned transaction #158

Open TheReturnOfJan opened 4 years ago

TheReturnOfJan commented 4 years ago

SigDataBuf can be called on an unsigned transfer, which will delete random bits of input/output data. https://github.com/leapdao/leap-core/blob/c2c30fb2fe89da6a1d02744c6afd828a1acbc7c5/lib/transaction.js#L223