axelarnetwork / tofn

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

Inspect a bug where self-refering of criminals results into errors. #37

Closed sdaveas closed 3 years ago

sdaveas commented 3 years ago

The cause of this might be the unconditional indexing of p2ps vector, for example here: https://github.com/axelarnetwork/tofn/blob/1ffea7978d81839287f08bb54b8aeeb3d8e9a7fd/src/protocol/gg20/sign/malicious/mod.rs#L73 where, in the case of R1BadBehaviour, the criminal's p2p is None.