Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common Error Type(s) for Malicious Actors #14

Open
quackzar opened this issue Jan 31, 2024 · 0 comments
Open

Common Error Type(s) for Malicious Actors #14

quackzar opened this issue Jan 31, 2024 · 0 comments

Comments

@quackzar
Copy link
Member

Currently each active secure protocol is set out to have its own error type for failed checks.
Most protocols will have errors for the transport layer, but these will also have a 'malicious' error that can be 'thrown'. As such a common trait or type for this kind of error could make sense, especially when it comes to handling malicious behaviour.

A sketch for a trait could be

trait Malicious : Error {
    fn offenders() -> &[Id];
}

as such the runtime could chose to handle with the given offenders in a fit manner, either excluding them and continuing, banning them and aborting or something else entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant