bigchaindb / js-bigchaindb-driver

Official BigchainDB JavaScript driver for Node.js and the browser
https://docs.bigchaindb.com/projects/js-driver/en/latest/usage.html
Apache License 2.0
216 stars 92 forks source link

Why signTransaction() does not check сonformity of private and public keys? #301

Open Purka opened 4 years ago

Purka commented 4 years ago

When I try to sign transaction with wrong private key I suppose to get an Error. But instead such transaction is successful. When I looked through the implementation of signTransaction() I've noticed that there are no any validation. I can even sign a transaction without a private key at all.