-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Feature/364 integretion with hsm #1602
Feature/364 integretion with hsm #1602
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} else { | ||
signedMessage = PrivateTransactionEncoder.signMessage(rawTransaction, credentials); | ||
} | ||
final byte[] signedMessage = txSignService.sign(rawTransaction, chainId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @andrii-kl , I think this change is not ok since it gets rid of the PrivateTransactionEncoder
to replace it with the regular TransactionEncoder
within TxSignServiceImpl
.
I have run some tests in Besu using 4.9.3
and indeed the signature is different.
Let me know if I am missing something, otherwise probably it would be good to open an issue for the fix.
Thanks in advance, Miguel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just spotted this also! #1747
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating the issue @antonydenyer ! If @andrii-kl is not available I could take the implementation of the fix.
Is there any documentation about how to use this with a hardware wallet? |
What does this PR do?
Add functionality to work with HSM (hardware security module). Reference implementation of working with HSM over HTTP
Why is it needed?
To sign transactions with hard wallet / HSM (hardware security module)