Skip to content

Conversation

@mbrandenburger
Copy link
Member

@mbrandenburger mbrandenburger commented Oct 21, 2025

This PR contains several cleanups

  • within the fabric-x package use imports from fabric-x-common where possible
  • remove redundant code for GenerateUUID
  • cleanup the use of our sha256 helper package Remove the hash helper package
  • use builtin max func

BREAKING CHANGE: This PR changes the NewChannelProvider of fabric sdk and other constructors as hash.Hasher got removed.

@mbrandenburger mbrandenburger self-assigned this Oct 21, 2025
@mbrandenburger mbrandenburger added the cleanup Something needs some cleanup label Oct 21, 2025
@mbrandenburger mbrandenburger added this to the Q4 milestone Oct 21, 2025
@mbrandenburger mbrandenburger force-pushed the cleanups branch 2 times, most recently from 9c8253b to 67b4c7d Compare October 23, 2025 07:25
@mbrandenburger
Copy link
Member Author

This PR removes platform/common/utils/hash:

  • we simply use sha256.Sum256 where applicable
  • Adding logging.Sha256Base64 as helper for logging
  • GetTLSCertHash was the only consumer of the hasher we injected via the SDK. This function now expliclity uses sha256.Sum256

Signed-off-by: Marcus Brandenburger <[email protected]>
Signed-off-by: Marcus Brandenburger <[email protected]>
Signed-off-by: Marcus Brandenburger <[email protected]>
Signed-off-by: Marcus Brandenburger <[email protected]>
@mbrandenburger mbrandenburger changed the title Cleanups refactor!: Cleanups Oct 27, 2025
@mbrandenburger mbrandenburger requested a review from arner October 27, 2025 10:09
Copy link
Contributor

@adecaro adecaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Happy to see the code getting leaner. Thanks Marcus

@mbrandenburger mbrandenburger merged commit 9dff256 into hyperledger-labs:main Oct 27, 2025
20 checks passed
@mbrandenburger mbrandenburger deleted the cleanups branch October 27, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Something needs some cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants