• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger / fabric-x-common / 23896191131
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: fix-data-hash
DEFAULT BRANCH: main
Ran 02 Apr 2026 10:34AM UTC
Jobs 1
Files 181
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2026 10:28AM UTC coverage: 82.227% (-0.007%) from 82.234%
23896191131

Pull #97

github

cendhu
fix: use length-delimited hashing in ComputeBlockDataHash

  ComputeBlockDataHash previously concatenated all data items and hashed
  the result, which is not cryptographically safe — different sets of
  items with different boundaries can produce the same hash.

  Switch to length-delimited serialization where each item is prefixed
  with its 4-byte big-endian length before hashing. This matches the
  orderer's BatchedRequests.Digest() computation.

  Fixes #83

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Pull Request #97: fix: use length-delimited hashing in ComputeBlockDataHash

8 of 8 new or added lines in 1 file covered. (100.0%)

3 existing lines in 2 files now uncovered.

14611 of 17769 relevant lines covered (82.23%)

0.92 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.71
0.0% common/channelconfig/bundle.go
2
94.65
-0.82% common/deliverclient/blocksprovider/bft_censorship_monitor.go
Jobs
ID Job ID Ran Files Coverage
1 23896191131.1 02 Apr 2026 10:34AM UTC 181
82.23
GitHub Action Run
Source Files on build 23896191131
  • Tree
  • List 181
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #97
  • PR Base - main (#23531958197)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc