Comments (3)
Yup, sorry, that is definitely true. You just lose the "error-chaining" and implicit impl From<rse::Error> for Error
benefits of using error-chain
. For now, we can just use a tuple enum in the ReedSolomon
variant. If you are interested, the Issue and corresponding PR in reed-solomon-erasure
can be found here (the author was very quick to respond):
Issue
PR
from hbbft.
For the moment, error-chain
can't be used by hbbft
because we depend onreed_solomon_erasure::Error
which doesn't implement the std::error::Error
trait, all error types that get chained together by error-chain
must implement std::error::Error
.
I'm going to file an Issue with reed_solomon_erasure
requesting the feature. So at least for now, hbbft is stuck with error enums. If the issue isn't picked up, I might be able to submit a PR implementing std Error.
from hbbft.
But an error variant can contain any kind of parameter, can't it? So due to that limitation the ReedSolomon(reed_solomon_erasure::Error)
variant wouldn't be in foreign_links
, but it could still live in the errors
section for now?
(That said, I agree that not implementing the Error
trait is an omission that should be fixed in the reed_solomon_erasure
crate!)
from hbbft.
Related Issues (20)
- More tests: Honey Badger HOT 2
- More tests: DynamicHoneyBadger
- More tests (?): QueueingHoneyBadger
- Make non-threshold cryptography generic?
- Why isn't there an example telling how to use QueueingHoneyBadger with socket HOT 2
- Change the `Target` variants for less cloning and less duplicated code.
- Is there any solution to do some customized verification HOT 2
- Add a method for skipping the current epoch. HOT 3
- Vulnerability in memoffset.
- Add markdownlint to CI?
- Common coin in private network HOT 8
- Error Cargo.toml HOT 1
- Implement a journal, to persist and restore the algorithms' state? HOT 6
- API for use from other languages? HOT 1
- Infinite loop in QueueingHoneyBadger HOT 1
- Question regarding missed batch HOT 1
- question regarding operation mutiple nodes
- `failure` dependency CVE-2019-25010
- How do we save serialize Secret Key to Vec<u8>? HOT 1
- How to setup a network? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hbbft.