Skip to content

Convert op_id and party_id to enums #33

@nph4rd

Description

@nph4rd

Description

Currently, we're working with op_id and party_id as a usize variables, and then we use these variables to "match" values, for example, like the following:

let (keylen, n_aes_keys) = match op_id {

I think we could maybe use an enum instead. For example, in the case of op_id:

enum OpId {
    Eq,
    Le,
}

This would be more idiomatic for Rust and could help us prevent errors my limiting options to the enum variants.

Are you interested in working on this improvement yourself?

Yes.

Metadata

Metadata

Assignees

Labels

Type: Improvement 📈Performance improvement not introducing a new feature or requiring a major refactor

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions