axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
112 stars 23 forks source link

feat(blame): type 7 fault detection #57

Closed ggutoski closed 3 years ago

ggutoski commented 3 years ago

fixes #49

ggutoski commented 3 years ago

I had to embed conditionally compiled malicious behaviour inside honest code in order to test the type 7 fault. Anything marked with the comment // TODO hack type7 fault was done to facilitate testing type 7 fault. Even so, I did not write tests for the following crimes: R8FailType7MissingData, R8FailType7BadNonceSummand, R8FailType7MtaWcKeyshareSummandLhs