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

tari-project / tari / 8046097519
62%

Build:
DEFAULT BRANCH: development
Ran 26 Feb 2024 02:44PM UTC
Jobs 1
Files 722
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

26 Feb 2024 08:53AM UTC coverage: 76.019% (-0.5%) from 76.478%
8046097519

push

github

web-flow
fix: avoid cloning range proofs during verification (#6166)

Description
---
Removes unnecessary cloning of range proofs during batch verification.

Motivation and Context
---
Currently, range proofs exist in transaction outputs as byte vectors.
When parsing outputs to collect these proofs for batch verification, the
byte vectors are cloned. This is done because the verification API
requires that the vector of proofs contain a vector reference to each
proof, but the `BulletRangeProof` type wrapper provides a slice instead
as part of its `ByteArray` implementation. Because proofs are several
hundred bytes and batches can be large, this cloning is wasteful.

This PR adds `BulletRangeProof::as_vec`, which returns the underlying
range proof as a vector reference. Doing so lets us avoid the clone
while collecting the range proofs.

How Has This Been Tested?
---
Existing tests pass.

What process can a PR reviewer use to test or verify this change?
---
Confirm that the change removes the cloning.

74876 of 98497 relevant lines covered (76.02%)

240452.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8046097519.1 26 Feb 2024 02:44PM UTC 0
76.02
GitHub Action Run
Source Files on build 8046097519
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8046097519
  • 19a824de on github
  • Prev Build on development (#7928642237)
  • Next Build on development (#8064981096)
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