Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java driver doesn't calculate the hash correctly #30

Open
Eyliss opened this issue Sep 10, 2018 · 1 comment
Open

Java driver doesn't calculate the hash correctly #30

Eyliss opened this issue Sep 10, 2018 · 1 comment
Assignees
Labels
review Review is this is a valid issue

Comments

@Eyliss
Copy link

Eyliss commented Sep 10, 2018

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.

@innopreneur
Copy link
Contributor

@Eyliss which driver version are you using?

@innopreneur innopreneur self-assigned this Sep 19, 2018
@innopreneur innopreneur added work-in-progress review Review is this is a valid issue and removed work-in-progress labels Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Review is this is a valid issue
Projects
None yet
Development

No branches or pull requests

2 participants