Vote kind should be a enum. Not a string. We are here forcing type-safety, only for you, wigga, to break it with your strings. wigga.
declare enum here with 3 possible context, associate a binary data with them:
Separate database interactions in ProposalManager into separate DBAL trait, so we could mock it in the future using automock crate and test properly.
signature check is quite complex, so separate it into several helpers and put them into crypto submodule
why the fuck do you store binary data inside relational database. declare tables, wigga
there is exists() function in diesel, which returns true / false if record exist
why the fuck do you store binary data inside relational database. declare tables, wigga
expires_at already implied when the proposal expires, so remove expired from a list of possible values, wigga
Add error on submission of invalid committee parameters
this should be an enum instead
comment from @CleverWild: blyat