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

SpinResearch / RustySecrets / 199
69%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2018 05:11PM UTC
Jobs 1
Files 35
Run time 2s
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

pending completion
199

Pull #61

travis-ci

Noah Vesely
PartialSecrets to BarycentricWeights

Having crippled `PartialSecrets` sufficiently from its original form, I realized
it was best to carry this process out as far as possible, and make this even
more explicit. Storing an `secret: Option<u8>` didn't make sense when it no
longer stored `ids` and `thresholds` and was dependent on outside forces
providing that information, so it could know when to compute the secret. The
`compute_secret` method, now `evaluate_at_zero`, it's own function in the
`lagrange` module, also seemed out of place.

Now `threshold` doesn't needed to be passed to `BarycentricWeights`, and the
type is more accurately described by its name. An outside force is still
responsible for managing the `ids`, and when `threshold` shares have been
interpolated, it will need to call `evaluate_at_zero` with the
`BarycentricWeights` and `ids` (`Recovery` now does this).

The last change to `Recovery` was to make it hold its own `secret` (it
automatically computes this secret as soon as threshold shares have been
interpolated via calls to `new` and `update`). Thus `get_secret` will be faster
because we're just unwrapping a `Some(Vec<u8>)` and rewrapping it in `Ok`,
instead of needing to construct that `Vec<u8>` by iterating over `Option<u8>`s
we need to unwrap and `collect`.
Pull Request #61:

1031 of 1486 relevant lines covered (69.38%)

0.69 hits per line

Jobs
ID Job ID Ran Files Coverage
5 199.5 (NAME='kcov') 03 Apr 2018 05:11PM UTC 0
69.38
Travis Job 199.5
Source Files on build 199
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #199
  • Pull Request #61
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