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

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

Build:
Build:
LAST BUILD BRANCH: fix-data-hash
DEFAULT BRANCH: main
Ran 02 Apr 2026 10:37AM 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:35AM UTC coverage: 82.222% (-0.01%) from 82.234%
23896319898

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%)

4 existing lines in 2 files now uncovered.

14610 of 17769 relevant lines covered (82.22%)

0.92 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.65
-0.82% common/deliverclient/blocksprovider/bft_censorship_monitor.go
2
93.81
-2.06% common/deliverclient/blocksprovider/block_receiver.go
Jobs
ID Job ID Ran Files Coverage
1 23896319898.1 02 Apr 2026 10:37AM UTC 181
82.22
GitHub Action Run
Source Files on build 23896319898
  • Tree
  • List 181
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
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