bigchaindb / bigchaindb/java-bigchaindb-driver
Java driver doesn't calculate the hash correctly
- Dominant language
- Java
- Stars
- 29
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the Java driver for create a transaction that, then, it's send to our system backend in order to be sent from there.
The assets and the metadata are filled from a valid transaction also received from our backend:
Transaction createTransaction = BigchainDbTransactionBuilder
.init()
.addAssets(transaction.getAsset().getData(), TreeMap.class)
.addMetaData(transaction.getMetaData())
.operation(Operations.CREATE)
.buildAndSignOnly((EdDSAPublicKey) generatedPublic, (EdDSAPrivateKey) generatedPrivate);
sendFulfilledTransaction(createTransaction.toHashInput());
But the message _The transaction's id isn't equal to the hash of its body_ is received when try to send the generated transaction. I think the id is not created correctly by the driver.
Thanks in advance.
Contributor guide
Assessment
This issue has not been assessed yet.