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

Use SHA256 to hash salted creator bytes for transaction ID #502

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

bestbeforetoday
Copy link
Member

Code previously used whichever hash function the client supplied when connecting the Gateway. For some implementations this hash function may use a different algorithm or even just pass through bytes unchanged. Fabric requires that the salted creator bytes be SHA256 hashed when generating a transaction ID. Any other algorithm would cause an invalid transaction ID to be generated.

Code previously used whichever hash function the client supplied when connecting the Gateway. For some implementations this hash function may use a different algorithm or even just pass through bytes unchanged. Fabric requires that the salted creator bytes be SHA256 hashed when generating a transaction ID. Any other algorithm would cause an invalid transaction ID to be generated.

Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review November 2, 2022 12:43
@bestbeforetoday bestbeforetoday enabled auto-merge (squash) November 2, 2022 12:44
@bestbeforetoday bestbeforetoday merged commit 491d866 into hyperledger:main Nov 2, 2022
@bestbeforetoday bestbeforetoday deleted the txid-hash branch January 9, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants